Răsfoiți Sursa

meta: minor changes

Michele Caini 1 an în urmă
părinte
comite
328286d201
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      src/entt/meta/meta.hpp
  2. 1 1
      src/entt/meta/node.hpp

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

@@ -1379,7 +1379,7 @@ public:
      * @return The tag for the class template of the underlying type.
      * @return The tag for the class template of the underlying type.
      */
      */
     [[nodiscard]] inline meta_type template_type() const noexcept {
     [[nodiscard]] inline meta_type template_type() const noexcept {
-        return node.templ.type ? meta_type{*ctx, node.templ.type(internal::meta_context::from(*ctx))} : meta_type{};
+        return node.templ.resolve ? meta_type{*ctx, node.templ.resolve(internal::meta_context::from(*ctx))} : meta_type{};
     }
     }
 
 
     /**
     /**

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

@@ -129,7 +129,7 @@ struct meta_template_node {
     using size_type = std::size_t;
     using size_type = std::size_t;
 
 
     size_type arity{0u};
     size_type arity{0u};
-    meta_type_node (*type)(const meta_context &) noexcept {};
+    meta_type_node (*resolve)(const meta_context &) noexcept {};
     meta_type_node (*arg)(const meta_context &, const size_type) noexcept {};
     meta_type_node (*arg)(const meta_context &, const size_type) noexcept {};
 };
 };