1

I'm confused about the following ROS source code:

typedef boost::shared_ptr< ::nav_msgs::Odometry_<ContainerAllocator> > Ptr;
typedef boost::shared_ptr< ::nav_msgs::Odometry_<ContainerAllocator> const> ConstPtr;

What are their differences and under what circumstances are they suitable for use?I would appreciate it if you could give me some inspiration.

KamilCuk
  • 120,984
  • 8
  • 59
  • 111
  • 1
    https://stackoverflow.com/questions/21476869/constant-pointer-vs-pointer-to-constant – AntiqTech Oct 29 '21 at 09:49
  • 1
    another one : https://stackoverflow.com/questions/890535/what-is-the-difference-between-char-const-and-const-char – AntiqTech Oct 29 '21 at 09:50
  • 1
    https://stackoverflow.com/questions/1143262/what-is-the-difference-between-const-int-const-int-const-and-int-const – AntiqTech Oct 29 '21 at 09:51

0 Answers0