Unqualify type names to transparent argments

This commit is contained in:
ThePhD 2021-01-21 02:20:31 -05:00
parent e892aa3470
commit f7d8e1e822
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
4 changed files with 16 additions and 24 deletions

View File

@ -865,19 +865,15 @@ namespace sol {
inline constexpr bool is_lua_reference_or_proxy_v = is_lua_reference_or_proxy<T>::value;
template <typename T>
struct is_transparent_argument : std::false_type { };
struct is_transparent_argument
: std::integral_constant<bool,
std::is_same_v<meta::unqualified_t<T>,
this_state> || std::is_same_v<meta::unqualified_t<T>, this_main_state> || std::is_same_v<meta::unqualified_t<T>, this_environment> || std::is_same_v<meta::unqualified_t<T>, variadic_args>> {
};
template <typename T>
constexpr inline bool is_transparent_argument_v = is_transparent_argument<T>::value;
template <>
struct is_transparent_argument<this_state> : std::true_type { };
template <>
struct is_transparent_argument<this_main_state> : std::true_type { };
template <>
struct is_transparent_argument<this_environment> : std::true_type { };
template <>
struct is_transparent_argument<variadic_args> : std::true_type { };
template <typename T>
struct is_variadic_arguments : meta::any<std::is_same<T, variadic_args>, meta::is_optional<T>> { };

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 2021-01-20 18:58:34.137440 UTC
// This header was generated with sol v3.2.3 (revision 6fde9c3f)
// Generated 2021-01-21 07:19:50.241796 UTC
// This header was generated with sol v3.2.3 (revision e892aa34)
// https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_CONFIG_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 2021-01-20 18:58:34.098440 UTC
// This header was generated with sol v3.2.3 (revision 6fde9c3f)
// Generated 2021-01-21 07:19:50.218794 UTC
// This header was generated with sol v3.2.3 (revision e892aa34)
// 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 2021-01-20 18:58:33.328212 UTC
// This header was generated with sol v3.2.3 (revision 6fde9c3f)
// Generated 2021-01-21 07:19:49.610795 UTC
// This header was generated with sol v3.2.3 (revision e892aa34)
// https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_HPP
@ -7567,19 +7567,15 @@ namespace sol {
inline constexpr bool is_lua_reference_or_proxy_v = is_lua_reference_or_proxy<T>::value;
template <typename T>
struct is_transparent_argument : std::false_type { };
struct is_transparent_argument
: std::integral_constant<bool,
std::is_same_v<meta::unqualified_t<T>,
this_state> || std::is_same_v<meta::unqualified_t<T>, this_main_state> || std::is_same_v<meta::unqualified_t<T>, this_environment> || std::is_same_v<meta::unqualified_t<T>, variadic_args>> {
};
template <typename T>
constexpr inline bool is_transparent_argument_v = is_transparent_argument<T>::value;
template <>
struct is_transparent_argument<this_state> : std::true_type { };
template <>
struct is_transparent_argument<this_main_state> : std::true_type { };
template <>
struct is_transparent_argument<this_environment> : std::true_type { };
template <>
struct is_transparent_argument<variadic_args> : std::true_type { };
template <typename T>
struct is_variadic_arguments : meta::any<std::is_same<T, variadic_args>, meta::is_optional<T>> { };