Przeglądaj źródła

meta: maybe unused context

Michele Caini 1 rok temu
rodzic
commit
aa52c301fe
2 zmienionych plików z 3 dodań i 1 usunięć
  1. 2 0
      TODO
  2. 1 1
      src/entt/meta/factory.hpp

+ 2 - 0
TODO

@@ -45,3 +45,5 @@ TODO:
 * natvis for meta_custom
 * meta: vectors for details and props
 * suppress -Wself-move on CI with g++13
+* meta: make context publicly available from the factory
+* only use details in the meta factory, not the meta type as a whole

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

@@ -120,7 +120,7 @@ public:
     }
 
 private:
-    meta_ctx *ctx{};
+    [[maybe_unused]] meta_ctx *ctx{};
     meta_type_node *owner{};
     dense_map<id_type, meta_prop_node, identity> *bucket{};
     meta_custom_node *user{};