[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


Hello,

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 
g++-specific.

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,

Stéphane

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

-- 
Dr Stéphane Magnenat
http://stephane.magnenat.net



More information about the ros-users mailing list