Browse Source

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

Michele Caini 3 years ago
parent
commit
4e28d96bef
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/entt/meta/factory.hpp

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

@@ -529,8 +529,9 @@ private:
  */
  */
 template<typename Type>
 template<typename Type>
 [[nodiscard]] auto meta(meta_ctx &ctx = locator<meta_ctx>::value_or()) noexcept {
 [[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
     // 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};
     return meta_factory<Type>{ctx};
 }
 }