From d8ab876205f7e549af2f0e39f448efa0b3d51b83 Mon Sep 17 00:00:00 2001 From: Ricardo Antunes Date: Tue, 26 Sep 2023 15:38:11 +0100 Subject: [PATCH] test(core): cover const dictionary find --- core/tests/reflection/traits/dictionary.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tests/reflection/traits/dictionary.hpp b/core/tests/reflection/traits/dictionary.hpp index a1467ceffc..afc507a81a 100644 --- a/core/tests/reflection/traits/dictionary.hpp +++ b/core/tests/reflection/traits/dictionary.hpp @@ -48,7 +48,7 @@ void testDictionary(T& value, std::size_t length, const K* insertedKey, V* inser { REQUIRE(trait.find(&value, insertedKey).isNull()); REQUIRE(trait.insertDefault(&value, insertedKey)); - auto it = trait.find(&value, insertedKey); + auto it = trait.find(static_cast(&value), insertedKey); REQUIRE(!it.isNull()); if constexpr (std::equality_comparable) @@ -94,7 +94,7 @@ void testDictionary(T& value, std::size_t length, const K* insertedKey, V* inser { REQUIRE(trait.find(&value, insertedKey).isNull()); REQUIRE(trait.insertMove(&value, insertedKey, insertedValue)); - auto it = trait.find(&value, insertedKey); + auto it = trait.find(static_cast(&value), insertedKey); REQUIRE(!it.isNull()); if constexpr (std::equality_comparable)