From 409fadd08b1975c8160927a200869f6511e405f3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 1 Sep 2015 10:44:09 +0100 Subject: No auto in lambda parameters --- libadhocutil/nvpParse.h | 2 +- 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(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()) { -- cgit v1.2.3