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

fix types in range loops to avoid copy due to different type #143

Merged
merged 2 commits into from
Jul 15, 2020

Conversation

dirk-thomas
Copy link
Member

Before: https://ci.ros2.org/view/nightly/job/nightly_linux_clang_libcxx/482/gcc/folder.1581101687/
After: Build Status

  • only unrelated warnings remaining

Regular CI builds testing the downstream packages (only with FastRTPS):

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

@dirk-thomas dirk-thomas self-assigned this Jul 14, 2020
@dirk-thomas dirk-thomas requested a review from clalancette July 14, 2020 22:01
Copy link
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

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

The change LGTM from a functional perspective, but I'll let co-maintainer @clalancette chime in since I know auto has been intentionally avoided for clarity.

@dirk-thomas dirk-thomas changed the title use auto in range loops to avoid copy due to different type fix types in range loops to avoid copy due to different type Jul 15, 2020
@dirk-thomas dirk-thomas requested a review from sloretz July 15, 2020 03:37
@dirk-thomas dirk-thomas merged commit edae1cc into ros2 Jul 15, 2020
@dirk-thomas dirk-thomas deleted the dirk-thomas/use-auto-range-loop branch July 15, 2020 15:18
@Karsten1987
Copy link
Contributor

Can this be backported to Foxy?

@dirk-thomas
Copy link
Member Author

Can this be backported to Foxy?

I don't see a reason why not.

Karsten1987 pushed a commit to Karsten1987/robot_state_publisher that referenced this pull request Sep 25, 2020
* use auto in range loops to avoid copy due to different type

Signed-off-by: Dirk Thomas <[email protected]>

* avoid auto, use explicit correct type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants