Skip to content

Remove RCLCPP_SCOPE_EXIT() and use RCPPUTILS_SCOPE_EXIT() #1725

@christophebedard

Description

@christophebedard

Feature request

Feature description

A scope exit helper macro (RCPPUTILS_SCOPE_EXIT()) was added to rcpputils in ros2/rcpputils#78, so we could use that here instead of RCLCPP_SCOPE_EXIT(). Same for the actual underlying class.

This was mentioned here ros2/rcpputils#78 (review), but I couldn't find an existing issue for it.

Implementation considerations

The one from rcpputils is cancelable while the one currently in rclcpp isn't, but I think that should be fine.

I will open a PR for this soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions