瀏覽代碼

Use unqualified type when accessing properties

Ole 10 年之前
父節點
當前提交
77505c69c9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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>;