Procházet zdrojové kódy

meta: remove the last use of the trampoline resolve function from the meta factory

Michele Caini před 3 roky
rodič
revize
4e28d96bef
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/entt/meta/factory.hpp

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

@@ -529,8 +529,9 @@ private:
  */
 template<typename Type>
 [[nodiscard]] auto meta(meta_ctx &ctx = locator<meta_ctx>::value_or()) noexcept {
+    auto &&context = internal::meta_context::from(ctx);
     // make sure the type exists in the context before returning a factory
-    internal::meta_context::from(ctx).value.try_emplace(type_id<Type>().hash(), internal::resolve_TODO<Type>());
+    context.value.try_emplace(type_id<Type>().hash(), internal::resolve<Type>(context));
     return meta_factory<Type>{ctx};
 }