Why do we need to specify the object in std::bind() to describe it as a functor? [duplicate]
This question already has answers here: How std::bind works with member functions (2 answers) Using std::bind with member function, use object pointer or not for this argument? (3 answers) Closed yesterday. I have been getting started with ROS and came across the following subscriber code:- #include <memory> #include “rclcpp/rclcpp.hpp” #include “std_msgs/msg/string.hpp” using std::placeholders::_1; class MinimalSubscriber […]