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

Update the code to use a non-deprecated header. #72

Merged
merged 3 commits into from Jul 13, 2023

Conversation

clalancette
Copy link
Contributor

This requires a little additional work, since Humble does not have that header.

This requires a little additional work, since Humble
does not have that header.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
CMakeLists.txt Outdated Show resolved Hide resolved
include/depthimage_to_laserscan/DepthImageToLaserScan.hpp Outdated Show resolved Hide resolved
Copy link

@cottsay cottsay left a comment

Choose a reason for hiding this comment

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

If you're going to bump to C++17 anyway, have you considered using __has_include instead?

https://en.cppreference.com/w/cpp/preprocessor/include

CMakeLists.txt Outdated Show resolved Hide resolved
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
@clalancette
Copy link
Contributor Author

If you're going to bump to C++17 anyway, have you considered using __has_include instead?

Oh, that's a good point. Let me give that a try.

That is available in C++17 and newer.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
@clalancette
Copy link
Contributor Author

Oh, that's a good point. Let me give that a try.

Oh yeah, that's much nicer. A much smaller patch that way. Thanks!

@clalancette clalancette merged commit f7b24c3 into ros2 Jul 13, 2023
4 checks passed
@clalancette clalancette deleted the clalancette/header-cleanup branch July 13, 2023 12:29
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