From 6ef14acbc0f8e8f6102930d4694a66c7b2d8434a Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Tue, 3 Dec 2024 23:34:49 +0000 Subject: [PATCH] Fix implicit conversion --- hardware_interface/test/test_macros.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware_interface/test/test_macros.cpp b/hardware_interface/test/test_macros.cpp index c32497c6b1..db62bce38f 100644 --- a/hardware_interface/test/test_macros.cpp +++ b/hardware_interface/test/test_macros.cpp @@ -62,7 +62,7 @@ TEST_F(TestMacros, throw_on_not_null) EXPECT_ANY_THROW(THROW_ON_NOT_NULLPTR(a_ptr)); std::vector vec_ptr; - for (size_t i : {0, 1, 2}) + for (size_t i = 0; i < 3; ++i) { vec_ptr.push_back(i_ptr); EXPECT_ANY_THROW(THROW_ON_NOT_NULLPTR(vec_ptr[i]));