From b936dfbb7362cc7d2c12bd5eda42d863d0b2a3b4 Mon Sep 17 00:00:00 2001 From: v4hn Date: Sun, 11 Aug 2024 23:35:39 +0200 Subject: [PATCH] drop use of obsolete _1 symbols The symbols have always been used through implicit includes from ros_comm, but ROS-O considers changing these includes right now because of excessive deprecation warnings building all of ROS. https://github.com/ros-o/ros_comm/pull/3 --- src/LaserProcROS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LaserProcROS.cpp b/src/LaserProcROS.cpp index 93d7682..c56941a 100644 --- a/src/LaserProcROS.cpp +++ b/src/LaserProcROS.cpp @@ -39,7 +39,7 @@ LaserProcROS::LaserProcROS(ros::NodeHandle& n, ros::NodeHandle& pnh):nh_(n){ boost::mutex::scoped_lock lock(connect_mutex_); // Lazy subscription to multi echo topic - pub_ = laser_proc::LaserTransport::advertiseLaser(n, 10, boost::bind(&LaserProcROS::connectCb, this, _1), boost::bind(&LaserProcROS::disconnectCb, this, _1), ros::VoidPtr(), false, false); + pub_ = laser_proc::LaserTransport::advertiseLaser(n, 10, [this](auto& pub){ connectCb(pub); }, [this](auto& pub){ disconnectCb(pub); }, ros::VoidPtr(), false, false); } LaserProcROS::~LaserProcROS(){