mirror of
https://github.com/monero-project/monero.git
synced 2025-08-07 00:34:19 -04:00
epee: fix build with boost 1.70.0
get_io_service was deprecated, and got removed
This commit is contained in:
parent
d6d6c46c4d
commit
17769db946
2 changed files with 19 additions and 7 deletions
|
@ -47,6 +47,12 @@
|
|||
// TODO:
|
||||
#include "net/network_throttle-detail.hpp"
|
||||
|
||||
#if BOOST_VERSION >= 107000
|
||||
#define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s).get_executor().context())
|
||||
#else
|
||||
#define GET_IO_SERVICE(s) ((s).get_io_service())
|
||||
#endif
|
||||
|
||||
#undef MONERO_DEFAULT_LOG_CATEGORY
|
||||
#define MONERO_DEFAULT_LOG_CATEGORY "net.conn"
|
||||
|
||||
|
@ -117,8 +123,8 @@ connection_basic::connection_basic(boost::asio::ip::tcp::socket&& sock, boost::s
|
|||
:
|
||||
m_stats(std::move(stats)),
|
||||
mI( new connection_basic_pimpl("peer") ),
|
||||
strand_(sock.get_io_service()),
|
||||
socket_(sock.get_io_service(), ssl_context.context),
|
||||
strand_(GET_IO_SERVICE(sock)),
|
||||
socket_(GET_IO_SERVICE(sock), ssl_context.context),
|
||||
m_want_close_connection(false),
|
||||
m_was_shutdown(false),
|
||||
m_ssl_support(ssl_support),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue