diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 128fda869..4e66214cc 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -307,9 +307,7 @@ public: * @return A meta any containing the returned value, if any. */ template - meta_any invoke(const id_type id, Args &&... args) const { - return type().invoke(id, *this, std::forward(args)...); - } + meta_any invoke(const id_type id, Args &&... args) const; /** * @brief Sets the value of a given variable. @@ -1519,6 +1517,12 @@ private: } +template +meta_any meta_any::invoke(const id_type id, Args &&... args) const { + return type().invoke(id, *this, std::forward(args)...); +} + + template bool meta_any::set(const id_type id, Type &&value) const { return type().set(id, *this, std::forward(value));