[skip ci] formatting fix

This commit is contained in:
ThePhD 2019-05-29 09:33:14 -04:00
parent 3d479a7342
commit 46a2b01f33
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA

View File

@ -164,8 +164,7 @@ namespace sol { namespace stack {
static decltype(auto) get(lua_State* L, int index, record& tracking) { static decltype(auto) get(lua_State* L, int index, record& tracking) {
using Tu = meta::unqualified_t<X>; using Tu = meta::unqualified_t<X>;
static constexpr bool is_userdata_of_some_kind static constexpr bool is_userdata_of_some_kind
= !std::is_reference_v< = !std::is_reference_v<X> && is_container_v<Tu> && std::is_default_constructible_v<Tu> && !is_lua_primitive_v<Tu> && !is_transparent_argument_v<Tu>;
X> && is_container_v<Tu> && std::is_default_constructible_v<Tu> && !is_lua_primitive_v<Tu> && !is_transparent_argument_v<Tu>;
if constexpr (is_userdata_of_some_kind) { if constexpr (is_userdata_of_some_kind) {
if (type_of(L, index) == type::userdata) { if (type_of(L, index) == type::userdata) {
return static_cast<Tu>(stack_detail::unchecked_unqualified_get<Tu>(L, index, tracking)); return static_cast<Tu>(stack_detail::unchecked_unqualified_get<Tu>(L, index, tracking));