From 41019cb943afbd30f5925af27f29d3d9cfe6d424 Mon Sep 17 00:00:00 2001 From: BratSinot Date: Wed, 14 Oct 2020 10:28:25 +0300 Subject: [PATCH] boost::placeholders in global namespace is deprecated. --- include/amqpcpp/libboostasio.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/amqpcpp/libboostasio.h b/include/amqpcpp/libboostasio.h index 4458f02..80e6f21 100644 --- a/include/amqpcpp/libboostasio.h +++ b/include/amqpcpp/libboostasio.h @@ -141,8 +141,8 @@ protected: { auto fn = boost::bind(&Watcher::read_handler, this, - _1, - _2, + boost::placeholders::_1, + boost::placeholders::_2, PTR_FROM_THIS(Watcher), connection, fd); @@ -159,8 +159,8 @@ protected: { auto fn = boost::bind(&Watcher::write_handler, this, - _1, - _2, + boost::placeholders::_1, + boost::placeholders::_2, PTR_FROM_THIS(Watcher), connection, fd); @@ -346,7 +346,7 @@ protected: { const auto fn = boost::bind(&Timer::timeout, this, - _1, + boost::placeholders::_1, PTR_FROM_THIS(Timer), connection, timeout);