mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 05:18:40 +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:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user