From b323a62b2a03189541d03810b9d38c3b8b0771c3 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 27 Apr 2014 02:26:06 -0400 Subject: [PATCH] Fix compiler error with cv-qualifiers on member function pointers --- sol/userdata.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)));