Skip to content

Fixing deprecated subscriber callback warnings - #532

Merged
aprotyas merged 3 commits into
masterfrom
aprotyas/deprecate-shared-ptr-sub-callback
Aug 26, 2021
Merged

aprotyas merged 3 commits into
masterfrom
aprotyas/deprecate-shared-ptr-sub-callback

Conversation

@aprotyas

@aprotyas aprotyas commented Aug 20, 2021 •

Copy link
Copy Markdown
Member

ros2/rclcpp#1713 deprecates the void shared_ptr<T> subscription callback signatures, so this PR migrates away from said signatures.

This patch affects the following packages:

  • Composition
  • Intra process
  • Lifecycle
  • Topic statistics
  • Quality of services
  • Image tools
  • Demo nodes C++

Signed-off-by: Abrar Rahman Protyasha [email protected]

Subscriber callbacks migrated from `SharedPtr` to `ConstSharedPtr`
types. This patch affects:

- Composition
- Intra process
- Lifecycle
- Topic statistics
- Quality of services
- Image tools
- Demo nodes C++

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
@aprotyas

Copy link
Copy Markdown
Member Author

CI (build/test: --packages-above-and-dependencies composition intra_process_demo demo_nodes_cpp lifecycle topic_statistics_demo quality_of_service_demo_cpp image_tools)

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

Comment thread composition/src/listener_component.cpp Resolved
`const` is unnecessary because the messages are being copied regardless,
and `typename` is unnecessary because the callback types are not
templated.

Signed-off-by: aprotyas <[email protected]>
These messages are copied anyway, so the `const` specifier is
unnecessary.

Signed-off-by: aprotyas <[email protected]>
@aprotyas

Copy link
Copy Markdown
Member Author

Full CI:

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

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.

2 participants