Skip to content

use boost::placeholders::_1/_2 instead of deprecated _1/_2#71

Open
lucasw wants to merge 3 commits intoros-drivers:masterfrom
lucasw:boost_placeholders
Open

use boost::placeholders::_1/_2 instead of deprecated _1/_2#71
lucasw wants to merge 3 commits intoros-drivers:masterfrom
lucasw:boost_placeholders

Conversation

@lucasw
Copy link

@lucasw lucasw commented May 23, 2022

When building on newer systems this error results, using boost::placeholders fixes it:

/home/lucasw/base_catkin_ws/src/ros/libuvc_ros/libuvc_camera/src/camera_driver.cpp: In member function ‘bool libuvc_camera::CameraDriver::Start()’:
/home/lucasw/base_catkin_ws/src/ros/libuvc_ros/libuvc_camera/src/camera_driver.cpp:81:84: error: ‘_1’ was not declared in this scope
   81 |   config_server_.setCallback(boost::bind(&CameraDriver::ReconfigureCallback, this, _1, _2));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants