Skip to content

Commit

Permalink
logging template, replace remove_const by remove_cv
Browse files Browse the repository at this point in the history
  • Loading branch information
vmayoral committed Apr 2, 2019
1 parent 65e91e9 commit 284cd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/resource/logging.hpp.em
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def is_supported_feature_combination(feature_combination):
*/
#define RCLCPP_@(severity)@(suffix)(logger, @(''.join([p + ', ' for p in get_macro_parameters(feature_combination).keys()]))...) \
static_assert( \
::std::is_same<typename std::remove_reference<std::remove_const<decltype(logger)>::type>::type, \
::std::is_same<typename std::remove_reference<std::remove_cv<decltype(logger)>::type>::type, \
typename ::rclcpp::Logger>::value, \
"First argument to logging macros must be an rclcpp::Logger"); \
RCUTILS_LOG_@(severity)@(suffix)_NAMED( \
Expand Down

0 comments on commit 284cd94

Please sign in to comment.