ros / ros_comm

ROS communications-related packages, including core client libraries (roscpp, rospy, roslisp) and graph introspection tools (rostopic, rosnode, rosservice, rosparam).
http://wiki.ros.org/ros_comm
764 stars 912 forks source link

Update: #include <boost/bind.hpp> -> <boost/bind/bind.hpp> for boost 1.73 #2348

Closed rhaschke closed 2 months ago

rhaschke commented 1 year ago

Since boost 1.73, i.e. on Ubuntu 22.04, the old header issues a deprecation warning:

/usr/include/boost/bind.hpp:36:1: note: ‘#pragma message:
The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated.
Please use <boost/bind/bind.hpp> + using namespace boost::placeholders,
or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’

While the new header <boost/bind/bind.hpp> is available for a long time (on 18.04 already) and the source has been updated to use boost::placeholders in #2023, the header was not yet updated.