diff options
-rw-r--r-- | libadhocutil/nvpParse.h | 2 | ||||
-rw-r--r-- | libadhocutil/unittests/testCurl.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libadhocutil/nvpParse.h b/libadhocutil/nvpParse.h index 09ff145..75cadef 100644 --- a/libadhocutil/nvpParse.h +++ b/libadhocutil/nvpParse.h @@ -39,7 +39,7 @@ class NvpParse : public yyFlexLexer { AssignFunc assign(T * t) const override { - return [t,this](const auto & value) { + return [t,this](const std::string & value) { t->*target = boost::lexical_cast<V>(value); }; } diff --git a/libadhocutil/unittests/testCurl.cpp b/libadhocutil/unittests/testCurl.cpp index 7d447c8..0aed488 100644 --- a/libadhocutil/unittests/testCurl.cpp +++ b/libadhocutil/unittests/testCurl.cpp @@ -89,7 +89,7 @@ BOOST_AUTO_TEST_CASE( fetch_multi_fail ) CurlMultiHandle cmh; bool errored = false; bool finished = false; - cmh.addCurl("http://sys.randomdan.homeip.net/missing", [&finished, &errored](auto & s) { + cmh.addCurl("http://sys.randomdan.homeip.net/missing", [&finished, &errored](std::istream & s) { try { std::string tok; while (!s.eof()) { |