Skip to content

Commit

Permalink
Update thunks.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-loew committed Apr 6, 2024
1 parent 813f964 commit 0264095
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/thunks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS
#endif

#include <type_traits>
#include <array>

#include <boost/function_types/config/config.hpp>
Expand Down Expand Up @@ -283,6 +284,7 @@ namespace lunaticpp {

#if _MSC_VER >= 1910 && _MSC_VER < 1920
// msvc 14.1 reports errors on boost::function_types::is_member_function_pointer when call_type is a member of a class template
static_assert(std::is_member_function_pointer<call_type>::value, "thunked function is not a member function");
#else
static_assert(boost::function_types::is_member_function_pointer<call_type>::value, "thunked function is not a member function");
#endif
Expand Down Expand Up @@ -316,6 +318,7 @@ namespace lunaticpp {

#if _MSC_VER >= 1910 && _MSC_VER < 1920
// msvc 14.1 reports errors on boost::function_types::is_member_function_pointer when call_type is a member of a class template
static_assert(std::is_member_function_pointer<call_type>::value, "thunked function is not a member function");
#else
#if defined(_M_IX86)
// ensure it's not a variadic function
Expand Down

0 comments on commit 0264095

Please sign in to comment.