Can anyone give a better understanding of this piece of code? [closed]
I have a question regarding the following lines in the node given here :
class ImageConverter
{
ros::NodeHandle nh_;
image_transport::ImageTransport it_;
........
.......
public:
ImageConverter()
: it_(nh_)
{
.....
....
}
I know that the constructor is assigning the value of nh_
to it_
, but are they not variables of different type? If they are not, how can we know that?