ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The constructor is not assigning to it_; it's invoking the constructor for it_ and passing nh_ as the argument to that constructor.

In general, the C++ initializer list syntax calls the constructor for each item. (and for scalar types construction is the same as assignment)