Skip to content

Commit

Permalink
Update is_string_constructible for C++23 P2166R1.
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanTLavavej authored and ThePhD committed Jul 27, 2021
1 parent bb5f60e commit 6283d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sol/traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6283d3c

Please sign in to comment.