mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
Applied changes proposed in https://github.com/decimad/luabind-deboostified/pull/38/
These changes claim to fix GCC 7 compilation.
This commit is contained in:
parent
5f23a72a16
commit
f6c8d9532e
@ -39,15 +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 <std::function< R(Args...) >, WrappedType >
|
||||
{
|
||||
using type = meta::type_list< R, Args... >;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
template< typename R, typename... Args, typename WrappedType >
|
||||
struct deduce_signature <std::function< R(Args...) >, WrappedType >
|
||||
{
|
||||
using type = meta::type_list< R, Args... >;
|
||||
};
|
||||
|
||||
template <typename F>
|
||||
struct default_converter<F, typename std::enable_if<detail::is_function<remove_const_reference_t<F>>::value>::type>
|
||||
|
||||
@ -26,6 +26,7 @@
|
||||
|
||||
#include <luabind/config.hpp>
|
||||
#include <luabind/detail/policy.hpp>
|
||||
#include <luabind/detail/type_traits.hpp>
|
||||
|
||||
namespace luabind {
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user