From dcbee7cda6faea688605ed24c2548187cb55f60a Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 28 Jul 2020 20:33:25 -0400 Subject: Fix SOL2 build on GCC 10.2 by working around overload resolution problem --- 3rdparty/sol2/sol/stack_push.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '3rdparty/sol2/sol/stack_push.hpp') diff --git a/3rdparty/sol2/sol/stack_push.hpp b/3rdparty/sol2/sol/stack_push.hpp index 9a839107fde..6e407cceb84 100644 --- a/3rdparty/sol2/sol/stack_push.hpp +++ b/3rdparty/sol2/sol/stack_push.hpp @@ -546,7 +546,7 @@ namespace sol { } static int push(lua_State* L, const wchar_t(&str)[N], std::size_t sz) { - return stack::push(L, str, str + sz); + return stack::push_specific(L, str, str + sz); } }; @@ -557,7 +557,7 @@ namespace sol { } static int push(lua_State* L, const char16_t(&str)[N], std::size_t sz) { - return stack::push(L, str, str + sz); + return stack::push_specific(L, str, str + sz); } }; @@ -568,7 +568,7 @@ namespace sol { } static int push(lua_State* L, const char32_t(&str)[N], std::size_t sz) { - return stack::push(L, str, str + sz); + return stack::push_specific(L, str, str + sz); } }; -- cgit v1.2.3-70-g09d2