From ec97dac6512d987dfef8b854b8db4d8e32127f38 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sun, 21 Aug 2016 19:20:31 -0400 Subject: [PATCH] push_reference must respect unique_usertypes are primitives --- sol/types.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sol/types.hpp b/sol/types.hpp index 0cafa82e..462047ae 100644 --- a/sol/types.hpp +++ b/sol/types.hpp @@ -620,6 +620,9 @@ namespace sol { struct accumulate : accumulate::value, V, Args...> {}; } // detail + template + struct is_unique_usertype : std::integral_constant::value> {}; + template struct lua_type_of : detail::lua_type_of {}; @@ -636,6 +639,7 @@ namespace sol { struct is_lua_primitive : std::integral_constant>::value || (lua_size::value > 1) + || is_unique_usertype::value || std::is_base_of>::value || std::is_base_of>::value || meta::is_specialization_of>::value @@ -662,9 +666,6 @@ namespace sol { template struct is_proxy_primitive : is_lua_primitive { }; - template - struct is_unique_usertype : std::integral_constant::value> {}; - template struct is_transparent_argument : std::false_type {};