meta: @Innokentiy-Alaytsev was right and I was not :)

This commit is contained in:
Michele Caini
2020-09-17 08:37:38 +02:00
parent 77865ab4a1
commit 5e85068e35

View File

@@ -307,9 +307,7 @@ public:
* @return A meta any containing the returned value, if any.
*/
template<typename... Args>
meta_any invoke(const id_type id, Args &&... args) const {
return type().invoke(id, *this, std::forward<Args>(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<typename... Args>
meta_any meta_any::invoke(const id_type id, Args &&... args) const {
return type().invoke(id, *this, std::forward<Args>(args)...);
}
template<typename Type>
bool meta_any::set(const id_type id, Type &&value) const {
return type().set(id, *this, std::forward<Type>(value));