From 1949f24e23024db33846dc3ecb8817d6b45dd8fd Mon Sep 17 00:00:00 2001 From: Raphael Dumusc Date: Wed, 24 May 2017 17:21:05 +0200 Subject: [PATCH] Fix build with clang 3.5 (Apple LLVM 6.0) --- tests/http/server.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/http/server.cpp b/tests/http/server.cpp index c094207..a264ca1 100644 --- a/tests/http/server.cpp +++ b/tests/http/server.cpp @@ -223,7 +223,8 @@ class Client : public HTTPClient void _checkImpl(const zeroeq::http::Method method, const std::string& request, const std::string& data, const Response& expected, const int line, - std::map requestHeaders = {}) + const std::map requestHeaders = + std::map{}) { HTTPClient::request request_(_baseURL + request); for (const auto& h : requestHeaders) @@ -652,7 +653,7 @@ BOOST_AUTO_TEST_CASE(handle_root) zeroeq::http::Server server; server.handle(zeroeq::http::Method::GET, "", - [this](const zeroeq::http::Request&) { + [](const zeroeq::http::Request&) { return zeroeq::http::make_ready_response( zeroeq::http::Code::OK, "homepage", "text/html"); }); @@ -714,7 +715,7 @@ BOOST_AUTO_TEST_CASE(handle_root_and_root_path) zeroeq::http::Server server; server.handle(zeroeq::http::Method::GET, "/", echoFunc); server.handle(zeroeq::http::Method::GET, "", - [this](const zeroeq::http::Request&) { + [](const zeroeq::http::Request&) { return zeroeq::http::make_ready_response( zeroeq::http::Code::OK, "homepage", "text/html"); });