mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Fixed occurences of is_cstr which should have been is_cstr_or_string
This commit is contained in:
parent
50b62c9346
commit
6cffb266c7
@ -212,7 +212,7 @@ namespace sol { namespace stack {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if constexpr (meta::is_c_str_v<T>) {
|
if constexpr (meta::is_c_str_or_string_v<T>) {
|
||||||
if constexpr (global) {
|
if constexpr (global) {
|
||||||
push(L, std::forward<Value>(value));
|
push(L, std::forward<Value>(value));
|
||||||
lua_setglobal(L, &key[0]);
|
lua_setglobal(L, &key[0]);
|
||||||
|
@ -699,7 +699,7 @@ namespace sol { namespace meta {
|
|||||||
using is_c_str_or_string = is_c_str_or_string_of<T, char>;
|
using is_c_str_or_string = is_c_str_or_string_of<T, char>;
|
||||||
|
|
||||||
template <typename T>
|
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>
|
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>>> { };
|
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>>> { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user