From 1778d82bc3d7957b3eca8afcc88e59212d731f97 Mon Sep 17 00:00:00 2001 From: Andrey Alekseenko Date: Sat, 23 Jan 2016 17:34:58 +0300 Subject: [PATCH] Better checking if boost::asio::buffer works with std::array Otherwise, had troubles with clang 3.4 and boost 1.54 --- I2PControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/I2PControl.cpp b/I2PControl.cpp index 0c7b63ca..ad81ec93 100644 --- a/I2PControl.cpp +++ b/I2PControl.cpp @@ -209,7 +209,7 @@ namespace client { auto request = std::make_shared(); socket->async_read_some ( -#if BOOST_VERSION >= 104900 +#if defined(BOOST_ASIO_HAS_STD_ARRAY) boost::asio::buffer (*request), #else boost::asio::buffer (request->data (), request->size ()),