diff --git a/sol/userdata.hpp b/sol/userdata.hpp index 5ffc7d19..661f27f6 100644 --- a/sol/userdata.hpp +++ b/sol/userdata.hpp @@ -100,8 +100,8 @@ private: template void build_function_tables() {} - template - void build_function_tables(Ret(T::* func)(MArgs...), std::string name, Args&&... args) { + template + void build_function_tables(Ret T::* func, std::string name, Args&&... args) { typedef typename std::decay::type fx_t; functionnames.push_back(std::move(name)); functions.emplace_back(detail::make_unique>(std::move(func)));