Skip to content

Commit

Permalink
drop implicitly included use of boost _1
Browse files Browse the repository at this point in the history
The symbol was included through ros_comm,
but ROS-O plans to change that include due to excessive deprecation warnings:
ros-o/ros_comm#3

Lambdas should be preferred over bind these days.
  • Loading branch information
v4hn committed Aug 14, 2024
1 parent 8eba74d commit 3796be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openni_camera/src/nodelets/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void DriverNodelet::onInit ()

// Initialize dynamic reconfigure
reconfigure_server_.reset( new ReconfigureServer(param_nh) );
reconfigure_server_->setCallback(boost::bind(&DriverNodelet::configCb, this, _1, _2));
reconfigure_server_->setCallback([this](auto cfg, uint32_t lvl){ configCb(cfg, lvl); });

// Setting up device can take awhile but onInit shouldn't block, so we spawn a
// new thread to do all the initialization
Expand Down

0 comments on commit 3796be6

Please sign in to comment.