Fixed occurences of is_cstr which should have been is_cstr_or_string

This commit is contained in:
Corentin Schreiber 2022-03-26 09:34:05 +00:00
parent 50b62c9346
commit 09133eaf0e
2 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ namespace sol { namespace stack {
}
}
else {
if constexpr (meta::is_c_str_v<T>) {
if constexpr (meta::is_c_str_or_string_v<T>) {
if constexpr (global) {
push(L, std::forward<Value>(value));
lua_setglobal(L, &key[0]);

View File

@ -699,7 +699,7 @@ namespace sol { namespace meta {
using is_c_str_or_string = is_c_str_or_string_of<T, char>;
template <typename T>
constexpr inline bool is_c_str_or_string_v = is_c_str<T>::value;
constexpr inline bool is_c_str_or_string_v = is_c_str_or_string<T>::value;
template <typename T>
struct is_move_only : all<neg<std::is_reference<T>>, neg<std::is_copy_constructible<unqualified_t<T>>>, std::is_move_constructible<unqualified_t<T>>> { };