Skip to content

Fix NodeOptions assignment operator (backport #2656)#2660

Merged
christophebedard merged 1 commit intojazzyfrom
mergify/bp/jazzy/pr-2656
Nov 7, 2024
Merged

Fix NodeOptions assignment operator (backport #2656)#2660
christophebedard merged 1 commit intojazzyfrom
mergify/bp/jazzy/pr-2656

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Oct 30, 2024

While working with NodeOptions, I realized "enable_logger_service" was copied with the assignment operator.
Here is a little PR to fix the issue. I also added some additional checks for primitives members in TEST(TestNodeOptions, copy).

Let me know what you think


This is an automatic backport of pull request #2656 done by Mergify.

* Fix NodeOptions assignment operator

Also copy the enable_logger_service_ member during the assignment operation

* Add more checks for NodeOptions copy test

* Set non default values by avoiding the copy-assignement

Signed-off-by: Romain DESILLE <r.desille@gmail.com>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
(cherry picked from commit 9b65494)
@fujitatomoya
Copy link
Copy Markdown
Collaborator

Pulls: #2660
Gist: https://gist.githubusercontent.com/fujitatomoya/25a7b441c5b5a4f931f776cfe21df58a/raw/d9294ed334d202928eac7ab4153988aa62b0d39e/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp
TEST args: --packages-above rclcpp
ROS Distro: jazzy
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14756

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

@christophebedard
Copy link
Copy Markdown
Member

CI looks good, so let's go ahead.

@christophebedard christophebedard merged commit 99b3803 into jazzy Nov 7, 2024
@christophebedard christophebedard deleted the mergify/bp/jazzy/pr-2656 branch November 7, 2024 17:48
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.

3 participants