Michele Caini 5 лет назад
Родитель
Сommit
a06c9f890c
2 измененных файлов с 1 добавлено и 6 удалено
  1. 0 1
      TODO
  2. 1 5
      src/entt/meta/meta.hpp

+ 0 - 1
TODO

@@ -25,6 +25,5 @@ Next:
  - custom pools.
  - custom pools.
  - the Perfect Model.
  - the Perfect Model.
  - page size 0 -> page less mode
  - 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 ::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
  - add example: 64 bit ids with 32 bits reserved for users' purposes

+ 1 - 5
src/entt/meta/meta.hpp

@@ -1695,11 +1695,7 @@ class meta_associative_container::meta_iterator {
         if constexpr(KeyOnly) {
         if constexpr(KeyOnly) {
             return meta_any{};
             return meta_any{};
         } else {
         } else {
-            if constexpr(std::is_const_v<std::remove_reference_t<decltype(std::declval<It>()->second)>>) {
-                return any.cast<It>()->second;
-            } else {
-                return std::ref(any.cast<It>()->second);
-            }
+            return std::ref(any.cast<It>()->second);
         }
         }
     }
     }