mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Update is_string_constructible for C++23 P2166R1.
This commit is contained in:
parent
bb5f60e138
commit
6283d3c2be
@ -663,7 +663,7 @@ namespace sol { namespace meta {
|
||||
template <typename T, typename CharT = char>
|
||||
using is_string_constructible = meta::boolean<
|
||||
is_string_literal_array_of_v<T,
|
||||
CharT> || std::is_same_v<T, const CharT*> || std::is_same_v<T, CharT> || is_string_of_v<T, CharT> || std::is_same_v<T, std::initializer_list<CharT>> || is_string_view_of_v<T, CharT>>;
|
||||
CharT> || std::is_same_v<T, const CharT*> || std::is_same_v<T, CharT> || is_string_of_v<T, CharT> || std::is_same_v<T, std::initializer_list<CharT>> || is_string_view_of_v<T, CharT> || std::is_null_pointer_v<T>>;
|
||||
|
||||
template <typename T, typename CharT = char>
|
||||
constexpr inline bool is_string_constructible_v = is_string_constructible<T, CharT>::value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user