From 09133eaf0e23e7096061ed598712fa6a2f2f7434 Mon Sep 17 00:00:00 2001 From: Corentin Schreiber Date: Sat, 26 Mar 2022 09:34:05 +0000 Subject: [PATCH] Fixed occurences of is_cstr which should have been is_cstr_or_string --- include/sol/stack_field.hpp | 2 +- include/sol/traits.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sol/stack_field.hpp b/include/sol/stack_field.hpp index 70b0903a..a0ef28f8 100644 --- a/include/sol/stack_field.hpp +++ b/include/sol/stack_field.hpp @@ -212,7 +212,7 @@ namespace sol { namespace stack { } } else { - if constexpr (meta::is_c_str_v) { + if constexpr (meta::is_c_str_or_string_v) { if constexpr (global) { push(L, std::forward(value)); lua_setglobal(L, &key[0]); diff --git a/include/sol/traits.hpp b/include/sol/traits.hpp index 3e7ff4ce..5af4cb37 100644 --- a/include/sol/traits.hpp +++ b/include/sol/traits.hpp @@ -699,7 +699,7 @@ namespace sol { namespace meta { using is_c_str_or_string = is_c_str_or_string_of; template - constexpr inline bool is_c_str_or_string_v = is_c_str::value; + constexpr inline bool is_c_str_or_string_v = is_c_str_or_string::value; template struct is_move_only : all>, neg>>, std::is_move_constructible>> { };