From 97124dc6041b047eff333c9d2df84e42530269fe Mon Sep 17 00:00:00 2001 From: Alessandro Pischedda Date: Wed, 17 Jan 2018 15:20:04 +0100 Subject: [PATCH] Fix compile remove ?boost::placeholders::' . --- include/libboostasio.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/libboostasio.h b/include/libboostasio.h index 3a49f03..2ac1930 100644 --- a/include/libboostasio.h +++ b/include/libboostasio.h @@ -152,8 +152,8 @@ private: STRAND_SOCKET_HANDLER( boost::bind(&Watcher::read_handler, this, - boost::placeholders::_1, - boost::placeholders::_2, + _1, + _2, // C++17 has 'weak_from_this()' support. #if __cplusplus >= 201701L weak_from_this(), @@ -197,8 +197,8 @@ private: STRAND_SOCKET_HANDLER( boost::bind(&Watcher::write_handler, this, - boost::placeholders::_1, - boost::placeholders::_2, + _1, + _2, // C++17 has 'weak_from_this()' support. #if __cplusplus >= 201701L weak_from_this(), @@ -266,8 +266,8 @@ private: STRAND_SOCKET_HANDLER( boost::bind(&Watcher::read_handler, this, - boost::placeholders::_1, - boost::placeholders::_2, + _1, + _2, // C++17 has 'weak_from_this()' support. #if __cplusplus >= 201701L weak_from_this(), @@ -290,8 +290,8 @@ private: STRAND_SOCKET_HANDLER( boost::bind(&Watcher::write_handler, this, - boost::placeholders::_1, - boost::placeholders::_2, + _1, + _2, // C++17 has 'weak_from_this()' support. #if __cplusplus >= 201701L weak_from_this(), @@ -360,7 +360,7 @@ private: _timer.async_wait(STRAND_TIMER_HANDLER( boost::bind(&Timer::timeout, this, - boost::placeholders::_1, + _1, // C++17 has 'weak_from_this()' support. #if __cplusplus >= 201701L weak_from_this(), @@ -427,7 +427,7 @@ private: _timer.async_wait(STRAND_TIMER_HANDLER( boost::bind(&Timer::timeout, this, - boost::placeholders::_1, + _1, // C++17 has 'weak_from_this()' support. #if __cplusplus >= 201701L weak_from_this(),