From 54ad49703a12ebcabe2d3c7e549b39259b740d4e Mon Sep 17 00:00:00 2001 From: Sean Kelly Date: Tue, 21 Jan 2020 13:16:32 -0500 Subject: [PATCH] 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 --- rclcpp/include/rclcpp/function_traits.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/rclcpp/include/rclcpp/function_traits.hpp b/rclcpp/include/rclcpp/function_traits.hpp index 3599df5..f5c56b0 100644 --- a/rclcpp/include/rclcpp/function_traits.hpp +++ b/rclcpp/include/rclcpp/function_traits.hpp @@ -88,8 +88,7 @@ struct function_traits> struct function_traits(FArgs ...)>> #elif defined _MSC_VER // MS Visual Studio struct function_traits< - std::_Binder -> + std::_Binder> #else #error "Unsupported C++ compiler / standard library" #endif @@ -106,8 +105,7 @@ struct function_traits(FArgs ...)>> #elif defined _MSC_VER // MS Visual Studio struct function_traits< - std::_Binder -> + std::_Binder> #else #error "Unsupported C++ compiler / standard library" #endif @@ -121,7 +119,7 @@ struct function_traits> #elif defined __GLIBCXX__ // glibc++ (GNU C++) struct function_traits> #elif defined _MSC_VER // MS Visual Studio -struct function_traits> +struct function_traits> #else #error "Unsupported C++ compiler / standard library" #endif