forked from pool/slade
This commit is contained in:
parent
adcda23619
commit
cb5ae8c171
22
gcc10.patch
22
gcc10.patch
@ -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) {
|
|
Loading…
Reference in New Issue
Block a user