Browse Source

Better checking if boost::asio::buffer works with std::array

Otherwise, had troubles with clang 3.4 and boost 1.54
pull/340/head
Andrey Alekseenko 9 years ago
parent
commit
1778d82bc3
  1. 2
      I2PControl.cpp

2
I2PControl.cpp

@ -209,7 +209,7 @@ namespace client @@ -209,7 +209,7 @@ namespace client
{
auto request = std::make_shared<I2PControlBuffer>();
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 ()),

Loading…
Cancel
Save