mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Don't use is_c_str_or_string for char[] detection in usertype storage
This commit is contained in:
parent
6cffb266c7
commit
6409634846
@ -66,11 +66,11 @@ namespace sol { namespace u_detail {
|
||||
template <typename K, typename Fq, typename T = void>
|
||||
struct binding : binding_base {
|
||||
using uF = meta::unqualified_t<Fq>;
|
||||
using F = meta::conditional_t<meta::is_c_str_or_string_of_v<uF, char>
|
||||
using F = meta::conditional_t<meta::is_c_str_of_v<uF, char>
|
||||
#if SOL_IS_ON(SOL_CHAR8_T_I_)
|
||||
|| meta::is_c_str_or_string_of_v<uF, char8_t>
|
||||
|| meta::is_c_str_of_v<uF, char8_t>
|
||||
#endif
|
||||
|| meta::is_c_str_or_string_of_v<uF, char16_t> || meta::is_c_str_or_string_of_v<uF, char32_t> || meta::is_c_str_or_string_of_v<uF, wchar_t>,
|
||||
|| meta::is_c_str_of_v<uF, char16_t> || meta::is_c_str_of_v<uF, char32_t> || meta::is_c_str_of_v<uF, wchar_t>,
|
||||
std::add_pointer_t<std::add_const_t<std::remove_all_extents_t<Fq>>>, std::decay_t<Fq>>;
|
||||
F data_;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user