Explorar o código

Use unqualified type when accessing properties

Ole %!s(int64=10) %!d(string=hai) anos
pai
achega
77505c69c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/luwra/usertypes.hpp

+ 1 - 1
lib/luwra/usertypes.hpp

@@ -131,7 +131,7 @@ namespace internal {
 	/**
 	 * Lua C function for a property accessor.
 	 */
-	template <typename U, typename R, R U::* property_pointer> static inline
+	template <typename U, typename R, R StripUserType<U>::* property_pointer> static inline
 	int access_user_type_property(State* state) {
 		using T = StripUserType<U>;