Compilation error fixed

This commit is contained in:
Fred Nicolson 2017-05-23 16:57:21 +01:00
parent 40f8ccb067
commit b34ada36d1

View File

@ -117,8 +117,8 @@ std::string URL::to_lower(const std::string &str)
const std::string &URL::scheme_to_string(URL::Scheme scheme) const std::string &URL::scheme_to_string(URL::Scheme scheme)
{ {
auto iter = std::find_if(scheme_string_map.begin(), scheme_string_map.end(), [](const auto &i){ auto iter = std::find_if(scheme_string_map.begin(), scheme_string_map.end(), [&](const auto &i){
return i->second == scheme; return i.second == scheme;
}); });
if(iter == scheme_string_map.end()) if(iter == scheme_string_map.end())