mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Where did the checkers for sol::nested go...? Maybe a casualty of refactoring?
This commit is contained in:
parent
903f4db02b
commit
11d6e8c8d4
|
@ -76,6 +76,10 @@ namespace stack {
|
|||
return stack::unqualified_check<nested<X>>(L, index, std::forward<Handler>(handler), tracking);
|
||||
}
|
||||
}
|
||||
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::check<NestedX>(L, index, ::std::forward<Handler>(handler), tracking);
|
||||
}
|
||||
else {
|
||||
return stack::unqualified_check<X>(L, index, std::forward<Handler>(handler), tracking);
|
||||
}
|
||||
|
|
|
@ -364,6 +364,8 @@ namespace sol {
|
|||
T value_;
|
||||
|
||||
public:
|
||||
using nested_type = T;
|
||||
|
||||
nested() = default;
|
||||
nested(const nested&) = default;
|
||||
nested(nested&&) = default;
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// This file was generated with a script.
|
||||
// Generated 2020-01-27 19:13:11.283155 UTC
|
||||
// This header was generated with sol v3.2.0 (revision 0c38fd1)
|
||||
// Generated 2020-01-28 18:44:18.449629 UTC
|
||||
// This header was generated with sol v3.2.0 (revision 903f4db)
|
||||
// https://github.com/ThePhD/sol2
|
||||
|
||||
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// This file was generated with a script.
|
||||
// Generated 2020-01-27 19:13:10.728559 UTC
|
||||
// This header was generated with sol v3.2.0 (revision 0c38fd1)
|
||||
// Generated 2020-01-28 18:44:17.872076 UTC
|
||||
// This header was generated with sol v3.2.0 (revision 903f4db)
|
||||
// https://github.com/ThePhD/sol2
|
||||
|
||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||
|
@ -6619,6 +6619,8 @@ namespace sol {
|
|||
T value_;
|
||||
|
||||
public:
|
||||
using nested_type = T;
|
||||
|
||||
nested() = default;
|
||||
nested(const nested&) = default;
|
||||
nested(nested&&) = default;
|
||||
|
@ -11566,6 +11568,10 @@ namespace stack {
|
|||
return stack::unqualified_check<nested<X>>(L, index, std::forward<Handler>(handler), tracking);
|
||||
}
|
||||
}
|
||||
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::check<NestedX>(L, index, ::std::forward<Handler>(handler), tracking);
|
||||
}
|
||||
else {
|
||||
return stack::unqualified_check<X>(L, index, std::forward<Handler>(handler), tracking);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user