Don't specify calling convention in std::_Binder template (#952)
Fix for a build error on 32-bit Windows. Member functions use the __thiscall convention by default which is incompatible with __cdecl. Signed-off-by: Sean Kelly <sean@seankelly.dev>
This commit is contained in:
parent
9037bba7f1
commit
54ad49703a
1 changed files with 3 additions and 5 deletions
|
@ -88,8 +88,7 @@ struct function_traits<std::_Bind<ReturnTypeT(ClassT::*(FArgs ...))(Args ...)>>
|
||||||
struct function_traits<std::_Bind<std::_Mem_fn<ReturnTypeT (ClassT::*)(Args ...)>(FArgs ...)>>
|
struct function_traits<std::_Bind<std::_Mem_fn<ReturnTypeT (ClassT::*)(Args ...)>(FArgs ...)>>
|
||||||
#elif defined _MSC_VER // MS Visual Studio
|
#elif defined _MSC_VER // MS Visual Studio
|
||||||
struct function_traits<
|
struct function_traits<
|
||||||
std::_Binder<std::_Unforced, ReturnTypeT(__cdecl ClassT::*)(Args ...), FArgs ...>
|
std::_Binder<std::_Unforced, ReturnTypeT (ClassT::*)(Args ...), FArgs ...>>
|
||||||
>
|
|
||||||
#else
|
#else
|
||||||
#error "Unsupported C++ compiler / standard library"
|
#error "Unsupported C++ compiler / standard library"
|
||||||
#endif
|
#endif
|
||||||
|
@ -106,8 +105,7 @@ struct function_traits<std::_Bind<ReturnTypeT(ClassT::*(FArgs ...))(Args ...) co
|
||||||
struct function_traits<std::_Bind<std::_Mem_fn<ReturnTypeT (ClassT::*)(Args ...) const>(FArgs ...)>>
|
struct function_traits<std::_Bind<std::_Mem_fn<ReturnTypeT (ClassT::*)(Args ...) const>(FArgs ...)>>
|
||||||
#elif defined _MSC_VER // MS Visual Studio
|
#elif defined _MSC_VER // MS Visual Studio
|
||||||
struct function_traits<
|
struct function_traits<
|
||||||
std::_Binder<std::_Unforced, ReturnTypeT(__cdecl ClassT::*)(Args ...) const, FArgs ...>
|
std::_Binder<std::_Unforced, ReturnTypeT (ClassT::*)(Args ...) const, FArgs ...>>
|
||||||
>
|
|
||||||
#else
|
#else
|
||||||
#error "Unsupported C++ compiler / standard library"
|
#error "Unsupported C++ compiler / standard library"
|
||||||
#endif
|
#endif
|
||||||
|
@ -121,7 +119,7 @@ struct function_traits<std::__bind<ReturnTypeT( &)(Args ...), FArgs ...>>
|
||||||
#elif defined __GLIBCXX__ // glibc++ (GNU C++)
|
#elif defined __GLIBCXX__ // glibc++ (GNU C++)
|
||||||
struct function_traits<std::_Bind<ReturnTypeT(*(FArgs ...))(Args ...)>>
|
struct function_traits<std::_Bind<ReturnTypeT(*(FArgs ...))(Args ...)>>
|
||||||
#elif defined _MSC_VER // MS Visual Studio
|
#elif defined _MSC_VER // MS Visual Studio
|
||||||
struct function_traits<std::_Binder<std::_Unforced, ReturnTypeT(__cdecl &)(Args ...), FArgs ...>>
|
struct function_traits<std::_Binder<std::_Unforced, ReturnTypeT( &)(Args ...), FArgs ...>>
|
||||||
#else
|
#else
|
||||||
#error "Unsupported C++ compiler / standard library"
|
#error "Unsupported C++ compiler / standard library"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue