File: 0003-Switch-to-new-boost-bind-bind.hpp.patch

package info (click to toggle)
ros-bond-core 1.8.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 432 kB
  • sloc: cpp: 1,173; python: 639; xml: 156; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 845 bytes parent folder | download | duplicates (4)
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);