瀏覽代碼

Use stripped user type when registering constructor

Ole 10 年之前
父節點
當前提交
f922121055
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/luwra/usertypes.hpp

+ 1 - 1
lib/luwra/usertypes.hpp

@@ -256,7 +256,7 @@ namespace internal {
 
 	template <typename T, typename... A>
 	struct UserTypeSignature<T (A...)> {
-		using UserType = T;
+		using UserType = StripUserType<T>;
 
 		static inline
 		void registerConstructor(State* state, const std::string& name) {