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

ROS and C++11

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

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
9

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

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

Comments

5

is it still the case (13 months later)?

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

Distributions up to Jade use C++03, but Kinetic uses C++11. http://www.ros.org/reps/rep-0003.html

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

Question Tools

Stats

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

Seen: 2,331 times

Last updated: Dec 05 '11