Skip to content

Commit

Permalink
logging template, replace remove_const by remove_cv
Browse files Browse the repository at this point in the history
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
  • Loading branch information
vmayoral committed Apr 13, 2019
1 parent ab0ea25 commit eea1714
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 @@ -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<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 eea1714

Please sign in to comment.