From 4692b7be79fdd9a83d7ea256e49736e6d3b5dc65 Mon Sep 17 00:00:00 2001 From: Jaeho Shim Date: Wed, 24 Jan 2018 09:19:44 +0900 Subject: [PATCH 1/3] Fix missing header inclusion --- luabind/detail/push_to_lua.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/luabind/detail/push_to_lua.hpp b/luabind/detail/push_to_lua.hpp index 22ad8534..8bb2e646 100644 --- a/luabind/detail/push_to_lua.hpp +++ b/luabind/detail/push_to_lua.hpp @@ -26,6 +26,7 @@ #include #include +#include namespace luabind { From 15d11cad0828c0e40f62b5b8373263b4659172ef Mon Sep 17 00:00:00 2001 From: Jaeho Shim Date: Wed, 24 Jan 2018 09:25:31 +0900 Subject: [PATCH 2/3] Wrong function call (detail::push -> detail::push_to_lua) --- luabind/lua_index_proxy.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luabind/lua_index_proxy.hpp b/luabind/lua_index_proxy.hpp index f8c726de..c62314f9 100644 --- a/luabind/lua_index_proxy.hpp +++ b/luabind/lua_index_proxy.hpp @@ -72,7 +72,7 @@ namespace luabind { detail::stack_pop pop(m_interpreter, 1); lua_pushvalue(m_interpreter, m_key_index); - detail::push(m_interpreter, value); + detail::push_to_lua(m_interpreter, value); lua_settable(m_interpreter, -3); return *this; } From 23d9073034d12150d1a21a6febbeb5609e21c985 Mon Sep 17 00:00:00 2001 From: Jaeho Shim Date: Wed, 24 Jan 2018 09:36:08 +0900 Subject: [PATCH 3/3] Fix problem of template specialization in a different namespace in gcc 7.x --- .../conversion_policies/function_converter.hpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/luabind/detail/conversion_policies/function_converter.hpp b/luabind/detail/conversion_policies/function_converter.hpp index 13c27da0..8dfb4342 100644 --- a/luabind/detail/conversion_policies/function_converter.hpp +++ b/luabind/detail/conversion_policies/function_converter.hpp @@ -39,14 +39,13 @@ namespace luabind { template< typename T > struct is_function< std::function< T > > : public std::true_type {}; - - template< typename R, typename... Args, typename WrappedType > - struct deduce_signature , WrappedType > - { - using type = meta::type_list< R, Args... >; - }; - } + + template< typename R, typename... Args, typename WrappedType > + struct deduce_signature , WrappedType > + { + using type = meta::type_list< R, Args... >; + }; template