Skip to content

Commit 70a8eca

Browse files
J-Cowsertrobkwan
authored andcommitted
Avoid C++20 structured binding capture (ros-controls#2832)
1 parent e5768ba commit 70a8eca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hardware_interface/src/resource_manager.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,8 +1003,10 @@ class ResourceStorage
10031003
{
10041004
if (interface)
10051005
{
1006-
for (auto & [hw_name, limiters] : joint_limiters_interface_)
1006+
for (auto & entry : joint_limiters_interface_)
10071007
{
1008+
auto & limiters = entry.second;
1009+
10081010
// If the prefix is a joint name, then bind the limiter to the command interface
10091011
if (limiters.find(interface->get_prefix_name()) != limiters.end())
10101012
{

0 commit comments

Comments
 (0)