Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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