diff --git a/test/test_reflection.cpp b/test/test_reflection.cpp index 01689743..a5ea54a7 100644 --- a/test/test_reflection.cpp +++ b/test/test_reflection.cpp @@ -435,11 +435,11 @@ TEST_CASE("test macros") { auto& var1 = get<"str"_ylts>(t); CHECK(var1 == "hello reflection"); - constexpr size_t idx = index_of(); - CHECK(idx == 2); + constexpr size_t i1 = index_of(); + CHECK(i1 == 2); - constexpr size_t idx2 = index_of(); - CHECK(idx2 == 4); + constexpr size_t i2 = index_of(); + CHECK(i2 == 4); #endif constexpr std::string_view name1 = name_of();