Why template when we only use one type??

pull/1186/head
Stephen Shelton 4 years ago
parent 30d0eb5bab
commit ca67c12928
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -445,9 +445,9 @@ namespace llarp
}
}
template <typename Section, typename Config>
template < typename Section >
Section
find_section(Config& c, const std::string& name)
find_section(const ConfigParser &parser, const std::string &name)
{
Section ret;
@ -459,7 +459,7 @@ namespace llarp
return true;
};
if (c.VisitSection(name.c_str(), visitor))
if(parser.VisitSection(name.c_str(), visitor))
{
return ret;
}

Loading…
Cancel
Save