From a41245e6bfb4bee57071a6114d8fd8e8d316f64f Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Tue, 1 Aug 2017 22:16:39 +0200 Subject: [PATCH] Added support to function_traits for std::bind in GCC >= 7.1 (#346) * Added support to function_traits for std::bind in GCC >= 7.1 * linter fixup --- rclcpp/include/rclcpp/function_traits.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rclcpp/include/rclcpp/function_traits.hpp b/rclcpp/include/rclcpp/function_traits.hpp index 25a8ed7..5f55cff 100644 --- a/rclcpp/include/rclcpp/function_traits.hpp +++ b/rclcpp/include/rclcpp/function_traits.hpp @@ -82,6 +82,8 @@ struct function_traits: function_traits #if defined _LIBCPP_VERSION // libc++ (Clang) struct function_traits> +#elif defined _GLIBCXX_RELEASE // glibc++ (GNU C++ >= 7.1) +struct function_traits> #elif defined __GLIBCXX__ // glibc++ (GNU C++) struct function_traits(FArgs ...)>> #elif defined _MSC_VER // MS Visual Studio