logging, remove_const before comparison (#680)
* 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 <v.mayoralv@gmail.com> * logging template, replace remove_const by remove_cv Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com> * Append typename Located after compiling rclcpp_action from source Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
This commit is contained in:
parent
24769507d3
commit
fcfe94e404
1 changed files with 1 additions and 1 deletions
|
@ -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<decltype(logger)>::type, \
|
||||
::std::is_same<typename std::remove_reference<typename 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( \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue