From b34ada36d1094ae97c6559f5428da32c63a6cb47 Mon Sep 17 00:00:00 2001 From: Fred Nicolson Date: Tue, 23 May 2017 16:57:21 +0100 Subject: [PATCH] Compilation error fixed --- src/URL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/URL.cpp b/src/URL.cpp index b9a7409..cafc0d2 100644 --- a/src/URL.cpp +++ b/src/URL.cpp @@ -117,8 +117,8 @@ std::string URL::to_lower(const std::string &str) 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){ - return i->second == scheme; + auto iter = std::find_if(scheme_string_map.begin(), scheme_string_map.end(), [&](const auto &i){ + return i.second == scheme; }); if(iter == scheme_string_map.end())