From 855d480049c6494d9b95500d81ae6e2b056683a4 Mon Sep 17 00:00:00 2001 From: Ubpa Date: Sun, 2 Aug 2020 12:57:45 +0800 Subject: [PATCH] variable name is_const -> ret_is_const `is_const` will get some strange messages in VS 2019 maybe it is conflicted with `std::is_const` --- include/sol/call.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sol/call.hpp b/include/sol/call.hpp index 2e9ae2d9..2ff17f9b 100644 --- a/include/sol/call.hpp +++ b/include/sol/call.hpp @@ -524,8 +524,8 @@ namespace sol { else { using traits_type = lua_bind_traits; using return_type = typename traits_type::return_type; - constexpr bool is_const = std::is_const_v>; - if constexpr (is_const) { + constexpr bool ret_is_const = std::is_const_v>; + if constexpr (ret_is_const) { (void)fx; (void)detail::swallow{ 0, (static_cast(args), 0)... }; return luaL_error(L, "sol: cannot write to a readonly (const) variable");