Skip to content
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

require C++17 and deprecate the rcppmath namespace #165

Merged
merged 2 commits into from Oct 13, 2022

Conversation

wjwwood
Copy link
Member

@wjwwood wjwwood commented Aug 29, 2022

As the title says, now that we can use c++17 in rolling we can do away with the clamp.hpp header because it's just implementing std::clamp which was added in c++17. Also as discussed in #85 (comment), removing the rcppmath namespace as it doesn't follow our conventions that packages should only put headers and symbols in their own namespace unless at all possible.

@wjwwood wjwwood self-assigned this Aug 29, 2022
include/rcppmath/clamp.hpp Outdated Show resolved Hide resolved
@wjwwood
Copy link
Member Author

wjwwood commented Aug 29, 2022

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@wjwwood
Copy link
Member Author

wjwwood commented Aug 29, 2022

@ros-pull-request-builder test this please

@nuclearsandwich
Copy link
Member

I've marked the agent that was exhibiting this issue offline to test.

@ros-pull-request-builder retest this please.

@cottsay
Copy link
Member

cottsay commented Aug 30, 2022

@ros-pull-request-builder retest this please.

@nuclearsandwich
Copy link
Member

@ros-pull-request-builder retest this please.

With this build the result is now UNSTABLE rather than failed and the infrastructure issues should be resolved.

include/rcpputils/clamp.hpp Outdated Show resolved Hide resolved
Signed-off-by: William Woodall <william@osrfoundation.org>
@wjwwood wjwwood force-pushed the require_cpp17_and_deprecate_rcppmath_ns branch from e4fa87c to 7ec674f Compare October 5, 2022 02:58
Signed-off-by: William Woodall <william@osrfoundation.org>
@wjwwood
Copy link
Member Author

wjwwood commented Oct 12, 2022

New CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with green CI.

@wjwwood
Copy link
Member Author

wjwwood commented Oct 13, 2022

The CI test failure on Windows is unrelated, merging.

@wjwwood wjwwood merged commit 1bd32c7 into rolling Oct 13, 2022
@wjwwood wjwwood deleted the require_cpp17_and_deprecate_rcppmath_ns branch October 13, 2022 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants