diff --git a/TODO b/TODO index 7aa3a8025..d46fef9af 100644 --- a/TODO +++ b/TODO @@ -25,6 +25,5 @@ Next: - custom pools. - the Perfect Model. - page size 0 -> page less mode - - test meta_associative_container::meta_iterator::value fro non-key-only, const value - add ::reach and rev iterators to views and groups for raw, faster and unsafe iterations - add example: 64 bit ids with 32 bits reserved for users' purposes diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 39f7a9885..7b66a20ec 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -1695,11 +1695,7 @@ class meta_associative_container::meta_iterator { if constexpr(KeyOnly) { return meta_any{}; } else { - if constexpr(std::is_const_v()->second)>>) { - return any.cast()->second; - } else { - return std::ref(any.cast()->second); - } + return std::ref(any.cast()->second); } }