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_core.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '3rdparty/sol2/sol/stack_core.hpp') diff --git a/3rdparty/sol2/sol/stack_core.hpp b/3rdparty/sol2/sol/stack_core.hpp index 2675e02e50b..5eceaeaf90b 100644 --- a/3rdparty/sol2/sol/stack_core.hpp +++ b/3rdparty/sol2/sol/stack_core.hpp @@ -173,9 +173,9 @@ namespace sol { return pusher>{}.push(L, std::forward(t), std::forward(args)...); } - // overload allows to use a pusher of a specific type, but pass in any kind of args - template::value>> - inline int push(lua_State* L, Arg&& arg, Args&&... args) { + // allow a pusher of a specific type, but pass in any kind of args + template + inline int push_specific(lua_State* L, Arg&& arg, Args&&... args) { return pusher>{}.push(L, std::forward(arg), std::forward(args)...); } -- cgit v1.2.3-70-g09d2