mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
🛠 Sometimes the conversion of sol::nested wrappers is not perfect.
This commit is contained in:
parent
eab1430ccd
commit
a631e99013
@ -257,6 +257,10 @@ namespace sol { namespace stack {
|
||||
return static_cast<actual>(r);
|
||||
}
|
||||
}
|
||||
else if constexpr (!std::is_reference_v<X> && meta::is_specialization_of_v<X, nested>) {
|
||||
using NestedX = typename meta::unqualified_t<X>::nested_type;
|
||||
return stack_detail::unchecked_unqualified_get<NestedX>(L, index, tracking);
|
||||
}
|
||||
else {
|
||||
return stack_detail::unchecked_unqualified_get<Tu>(L, index, tracking);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user