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

ROS and C++11

asked 2011-12-05 09:24:33 -0500

Is C++11 currently supported by ROS? If not is this support planned for the near future?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2011-12-05 10:26:41 -0500

Brian Gerkey gravatar image

According to REP 3:

"We use the C++03 (ISO/IEC 14882:2003) standard, and are compiler-agnostic. While we mainly develop with gcc, no use of compiler-specific features is allowed without proper use of macros to allow use on other platforms.

Use of C++[0|1]x or tr1 features are only allowed if support for that feature is checked at compile time, and equivalent functionality exists without requiring C++[0|1]x code. A wholesale jump to C++[0|1]x will not happen until all commonly used OS platforms fully support it."

edit flag offensive delete link more



is it still the case (13 months later)?

brice rebsamen gravatar image brice rebsamen  ( 2013-01-21 09:55:47 -0500 )edit

Distributions up to Jade use C++03, but Kinetic uses C++11.

clyde gravatar image clyde  ( 2016-11-28 15:11:43 -0500 )edit

Question Tools


Asked: 2011-12-05 09:24:33 -0500

Seen: 2,027 times

Last updated: Dec 05 '11