fix boost::placeholders undefined error and remain well explicited than use just '_1' or '_2'

This commit is contained in:
Alessandro Pischedda 2018-01-18 10:08:56 +01:00
parent 4c2ef4adb4
commit fd14790166
1 changed files with 10 additions and 10 deletions

View File

@ -152,8 +152,8 @@ private:
STRAND_SOCKET_HANDLER(
boost::bind(&Watcher::read_handler,
this,
_1,
_2,
boost::arg<1>(),
boost::arg<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,
_1,
_2,
boost::arg<1>(),
boost::arg<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,
_1,
_2,
boost::arg<1>(),
boost::arg<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,
_1,
_2,
boost::arg<1>(),
boost::arg<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,
_1,
boost::arg<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,
_1,
boost::arg<1>(),
// C++17 has 'weak_from_this()' support.
#if __cplusplus >= 201701L
weak_from_this(),