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

use reinterpret_cast for function pointer conversion. #1919

Conversation

fujitatomoya
Copy link
Collaborator

address #1915

Signed-off-by: Tomoya Fujita Tomoya.Fujita@sony.com

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
@fujitatomoya
Copy link
Collaborator Author

#1263 subscription callbacks do not have this problem, that has been verified with https://github.com/fujitatomoya/ros2_test_prover/blob/3f8005350d75b0da30bad734252966d7c6868ca1/prover_rclcpp/src/rclcpp_1915.cpp#L27-L31

Copy link
Member

@christophebedard christophebedard left a comment

Choose a reason for hiding this comment

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

LGTM.

@christophebedard
Copy link
Member

#1263 subscription callbacks do not have this problem, that has been verified with fujitatomoya/ros2_test_prover@3f80053/prover_rclcpp/src/rclcpp_1915.cpp#L27-L31

Yeah, if I remember correctly, function pointers and std::binds all get converted into std::function.

Copy link
Collaborator Author

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

@christophebedard thanks for review, i will start the CI.

@fujitatomoya
Copy link
Collaborator Author

CI:

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

@fujitatomoya
Copy link
Collaborator Author

@sloretz @clalancette could you review this when you have time?

@clalancette clalancette added this to In progress in Iron Irwini via automation Apr 21, 2022
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.

This looks very reasonable to me. Let's wait to merge this until after we branch off for Humble (probably today).

@fujitatomoya fujitatomoya merged commit a198067 into ros2:master Apr 26, 2022
Iron Irwini automation moved this from In progress to Done Apr 26, 2022
@clalancette clalancette removed this from Done in Iron Irwini Mar 27, 2023
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

3 participants