diff --git a/core/samples/reflection/traits/array/main.cpp b/core/samples/reflection/traits/array/main.cpp index 01db3272de..33d111cfd5 100644 --- a/core/samples/reflection/traits/array/main.cpp +++ b/core/samples/reflection/traits/array/main.cpp @@ -24,7 +24,7 @@ void printArray(const Type& type, const void* instance) return; } - for (auto* element : arrayView) + for (const auto* element : arrayView) { CUBOS_INFO("{}", *static_cast(element)); }