@@ -33,7 +33,7 @@ using CFunction = lua_CFunction;
* User type
*/
template <typename T>
-struct Value: Value<T&> {};
+struct Value;
// Nil
template <>
@@ -123,7 +123,7 @@ internal::StripUserType<U>& construct(State* state, A&&... args) {
template <typename U>
-struct Value<U&> {
+struct Value {
using T = internal::StripUserType<U>;
/**
@@ -154,6 +154,9 @@ struct Value<U&> {
}
};
+template <typename U>
+struct Value<U&>: Value<U> {};
+