Explorar o código

Use stripped user type when registering constructor

Ole %!s(int64=10) %!d(string=hai) anos
pai
achega
f922121055
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {