Where did the checkers for sol::nested go...? Maybe a casualty of refactoring?

This commit is contained in:
ThePhD 2020-01-28 13:44:35 -05:00
parent 903f4db02b
commit 11d6e8c8d4
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
4 changed files with 16 additions and 4 deletions

View File

@ -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);
}

View File

@ -364,6 +364,8 @@ namespace sol {
T value_;
public:
using nested_type = T;
nested() = default;
nested(const nested&) = default;
nested(nested&&) = default;

View File

@ -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

View File

@ -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);
}