Skip to content

Should we fix -Wc++20-extensions? #2574

@christophfroehlich

Description

@christophfroehlich
--- stderr: hardware_interface                                
/workspaces/ros2_rolling_ws/src/ros2_control/hardware_interface/src/resource_manager.cpp:1024:87: warning: captured structured bindings are a C++20 extension [-Wc++20-extensions]
 1024 |           const auto limiter_fn = [this, joint_name, interface_name, desired_period, &limiters](
      |                                                                                       ^
/workspaces/ros2_rolling_ws/src/ros2_control/hardware_interface/src/resource_manager.cpp:1003:29: note: 'limiters' declared here
 1003 |       for (auto & [hw_name, limiters] : joint_limiters_interface_)
      |                             ^
1 warning generated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions