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

    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