SHA256
1
0
forked from pool/slade
slade/gcc10.patch

23 lines
927 B
Diff

---
src/External/sol/sol.hpp | 2 ++
1 file changed, 2 insertions(+)
Index: SLADE-3.1.12/src/External/sol/sol.hpp
===================================================================
--- SLADE-3.1.12.orig/src/External/sol/sol.hpp
+++ SLADE-3.1.12/src/External/sol/sol.hpp
@@ -4537,11 +4537,13 @@ namespace sol {
return pusher<meta::unqualified_t<T>>{}.push(L, std::forward<T>(t), std::forward<Args>(args)...);
}
+#if 0
// 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) {
return pusher<meta::unqualified_t<T>>{}.push(L, std::forward<Arg>(arg), std::forward<Args>(args)...);
}
+#endif
template<typename T, typename... Args>
inline int push_reference(lua_State* L, T&& t, Args&&... args) {