Skip to content

Commit 33045ed

Browse files
authored
Avoid C++20 structured binding capture (#2832) (#2834)
1 parent 8e7c322 commit 33045ed

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
@@ -989,8 +989,10 @@ class ResourceStorage
989989
{
990990
if (interface)
991991
{
992-
for (auto & [hw_name, limiters] : joint_limiters_interface_)
992+
for (auto & entry : joint_limiters_interface_)
993993
{
994+
auto & limiters = entry.second;
995+
994996
// If the prefix is a joint name, then bind the limiter to the command interface
995997
if (limiters.find(interface->get_prefix_name()) != limiters.end())
996998
{

0 commit comments

Comments
 (0)