SHA256
1
0
forked from pool/slade
Jan Engelhardt 2020-10-11 17:33:02 +00:00 committed by Git OBS Bridge
parent adcda23619
commit cb5ae8c171

View File

@ -1,22 +0,0 @@
---
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) {