mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-20 14:39:58 +00:00
Merge pull request #340 from al42and/openssl-boost-asio-check
Better checking if boost::asio::buffer works with std::array
This commit is contained in:
commit
f545e6eb27
@ -209,7 +209,7 @@ namespace client
|
|||||||
{
|
{
|
||||||
auto request = std::make_shared<I2PControlBuffer>();
|
auto request = std::make_shared<I2PControlBuffer>();
|
||||||
socket->async_read_some (
|
socket->async_read_some (
|
||||||
#if BOOST_VERSION >= 104900
|
#if defined(BOOST_ASIO_HAS_STD_ARRAY)
|
||||||
boost::asio::buffer (*request),
|
boost::asio::buffer (*request),
|
||||||
#else
|
#else
|
||||||
boost::asio::buffer (request->data (), request->size ()),
|
boost::asio::buffer (request->data (), request->size ()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user