Skip to content

Commit 6e8ad87

Browse files
committed
drop obsolete use of boost::bind and _1
Lambdas are preferred since c++11. The transitively included use of _1 starts failing with a recently proposed change to adapt the boost-bind include API in ros_comm. ros-o/ros_comm#3
1 parent d22b98f commit 6e8ad87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fetch_depth_layer/src/depth_layer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void FetchDepthLayer::onInitialize()
146146
depth_image_sub_.reset(new message_filters::Subscriber<sensor_msgs::Image>(private_nh, camera_depth_topic, 10));
147147
depth_image_filter_ = boost::shared_ptr< tf2_ros::MessageFilter<sensor_msgs::Image> >(
148148
new tf2_ros::MessageFilter<sensor_msgs::Image>(*depth_image_sub_, *tf_, global_frame_, 10, private_nh));
149-
depth_image_filter_->registerCallback(boost::bind(&FetchDepthLayer::depthImageCallback, this, _1));
149+
depth_image_filter_->registerCallback([this](auto msg){ depthImageCallback(msg); });
150150
observation_subscribers_.push_back(depth_image_sub_);
151151
observation_notifiers_.push_back(depth_image_filter_);
152152
observation_notifiers_.back()->setTolerance(ros::Duration(0.05));

0 commit comments

Comments
 (0)