소스 검색

meta: maybe unused context

Michele Caini 2 년 전
부모
커밋
aa52c301fe
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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{};