summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <daniel.goodliffe@pressassociation.com>2015-09-01 10:44:09 +0100
committerDan Goodliffe <daniel.goodliffe@pressassociation.com>2015-09-01 16:56:11 +0100
commit409fadd08b1975c8160927a200869f6511e405f3 (patch)
tree38cc3b60d625446c69fa9a432ff54b79d782dc22
parentDon't free the context's stack while it's still being executed (diff)
downloadlibadhocutil-409fadd08b1975c8160927a200869f6511e405f3.tar.bz2
libadhocutil-409fadd08b1975c8160927a200869f6511e405f3.tar.xz
libadhocutil-409fadd08b1975c8160927a200869f6511e405f3.zip
No auto in lambda parameters
-rw-r--r--libadhocutil/nvpParse.h2
-rw-r--r--libadhocutil/unittests/testCurl.cpp2
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()) {