-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrating to Kinetic, MoveIt! needs C++11 #156
Conversation
14.04 / Indigo also should support C++-11, so this should be a straight forward backport. |
Thanks for the contribution @pbeeson. I'm not an expert here, so perhaps @Jmeyer1292 or @gavanderhoorn could chime in. I've see this done two "other" ways:
OR... It's my understanding that the later is the desired method since it only applies to a single target. Anybody else have any thoughts? |
Your CHECK_CXX method is indeed more generic (though you don't need fpic or -W flags added). |
|
@VictorLamoine: afaik, re: mixing C++ standards: no, that is not a good idea, but |
Based on feedback from @gavanderhoorn and the fact that a lot of people use The travis jobs appear to be failing due to socket connection issues (this is a known issue). |
@shaun-edwards wrote:
what I forgot to factor in is that We then get into the problems that @VictorLamoine hinted at: anyone using these libraries will have to compile their own sources with With MoveIt, everything was migrated in one go. I'm guessing we will probably have to do this here as well, or we'll have to explicitly document somewhere that only |
Well, since we mostly depend on MoveIt, should we just make the leap to C++ 11? What isn't clear to me is how this is or is not an issue with ROS itself? How is it that we aren't seen issues with a dependency on ROS (not sure if it has moved to C++ 11 yet)? |
ROS indigo enforces C++03, C++11 is an option since jade (http://www.ros.org/reps/rep-0003.html)
👍 , but not for indigo
"Support for C++11 is now a compiler requirement, but the API of the packages included in desktop-full will not use any C++11-specific feature. External packages are encouraged to follow this guideline." (http://www.ros.org/reps/rep-0003.html#c)
According to moveit/moveit#289 (comment) the recommended way is |
Yet another way to ad C++11 option? Based on some quick searching, it appears
@ipa-mdl, do you still recommend |
It only applies the current and sub-directories; I think we should use the same way MoveIt enables C++11. All of the suggested approach would work. 👍 for this fix (with |
I have never tested any of the c++11 support options myself (still on c++03 code and indigo..). And I agree with @VictorLamoine:
|
I believe #161 is a more proper fix. |
Industrial Core seems to compile under Kinetic, only once you force industrial_trajectory_filters to use C++11.