1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Mon, 14 Dec 2020 11:27:08 +0100
Subject: Switch to new boost/bind/bind.hpp
---
bondcpp/src/bond.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bondcpp/src/bond.cpp b/bondcpp/src/bond.cpp
index 58e7901..8bba3a4 100644
--- a/bondcpp/src/bond.cpp
+++ b/bondcpp/src/bond.cpp
@@ -176,7 +176,7 @@ void Bond::start()
boost::mutex::scoped_lock lock(mutex_);
connect_timer_.reset();
pub_ = nh_.advertise<bond::Status>(topic_, 5);
- sub_ = nh_.subscribe<bond::Status>(topic_, 30, boost::bind(&Bond::bondStatusCB, this, _1));
+ sub_ = nh_.subscribe<bond::Status>(topic_, 30, boost::bind(&Bond::bondStatusCB, this, boost::placeholders::_1));
publishingTimer_ = nh_.createSteadyTimer(
ros::WallDuration(heartbeat_period_), &Bond::doPublishing, this);
|