summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/sol2/sol/stack_core.hpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-07-28 20:33:25 -0400
committer AJR <ajrhacker@users.noreply.github.com>2020-07-28 20:33:25 -0400
commitdcbee7cda6faea688605ed24c2548187cb55f60a (patch)
treeb1fa54bbf460a25d2f89048dbb09ad3d145aaf88 /3rdparty/sol2/sol/stack_core.hpp
parentab37462a09de15accbca6e5a4b66fb9597daa4f9 (diff)
Fix SOL2 build on GCC 10.2 by working around overload resolution problem
Diffstat (limited to '3rdparty/sol2/sol/stack_core.hpp')
-rw-r--r--3rdparty/sol2/sol/stack_core.hpp6
1 files changed, 3 insertions, 3 deletions
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<meta::unqualified_t<T>>{}.push(L, std::forward<T>(t), std::forward<Args>(args)...);
}
- // overload allows to use a pusher of a specific type, but pass in any kind of args
- template<typename T, typename Arg, typename... Args, typename = std::enable_if_t<!std::is_same<T, Arg>::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<typename T, typename Arg, typename... Args>
+ inline int push_specific(lua_State* L, Arg&& arg, Args&&... args) {
return pusher<meta::unqualified_t<T>>{}.push(L, std::forward<Arg>(arg), std::forward<Args>(args)...);
}