From fcfe94e404b78f1e1745e4f63c8b91bc56d63cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mayoral=20Vilches?= Date: Mon, 15 Apr 2019 20:42:07 +0200 Subject: [PATCH] logging, remove_const before comparison (#680) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * logging, remove_const before comparison This change removes the const value from the logger before comparing with std::is_same. Signed-off-by: Víctor Mayoral Vilches * logging template, replace remove_const by remove_cv Signed-off-by: Víctor Mayoral Vilches * Append typename Located after compiling rclcpp_action from source Signed-off-by: Víctor Mayoral Vilches --- rclcpp/resource/logging.hpp.em | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclcpp/resource/logging.hpp.em b/rclcpp/resource/logging.hpp.em index 6c4986a..5641134 100644 --- a/rclcpp/resource/logging.hpp.em +++ b/rclcpp/resource/logging.hpp.em @@ -95,7 +95,7 @@ def is_supported_feature_combination(feature_combination): #define RCLCPP_@(severity)@(suffix)(logger, @(''.join([p + ', ' for p in get_macro_parameters(feature_combination).keys()]))...) \ do { \ static_assert( \ - ::std::is_same::type, \ + ::std::is_same::type>::type, \ typename ::rclcpp::Logger>::value, \ "First argument to logging macros must be an rclcpp::Logger"); \ RCUTILS_LOG_@(severity)@(suffix)_NAMED( \