[ros-users] A smooth path to C++11

Stéphane Magnenat stephane.magnenat at mavt.ethz.ch
Sun Mar 18 11:52:49 UTC 2012


While I know that C++11 is not supported by ROS, it would be nice to 
have a consistent way to patch ROS to improve its compatibility, as it 
shall be eventually.

For instance, there should probably be a ROS-wide define that tells 
whether C++11 is enabled, to easily add compatibility. Because no such 
define exist, in [1] I used __GXX_EXPERIMENTAL_CXX0X__ which is sadly 

In general, there are good reasons for upstreams to start using C++11, 
for instance because C++11 allows to write cleaner code in less time 
than C++03. Therefore, it would be nice for upstreams that decide to do 
so (such as me) to have a seamless way to contribute compatibility 
patches to ROS.

Kind regards,


[1] https://code.ros.org/trac/ros-pkg/ticket/5401

Dr Stéphane Magnenat

More information about the ros-users mailing list