Skip to content

Commit 86335dd

Browse files
authored
Fix logging macros to build with msvc and cpp20 (#2063)
Signed-off-by: Mateusz Szczygielski <mateusz.szczygielski@robotec.ai> Signed-off-by: Mateusz Szczygielski <mateusz.szczygielski@robotec.ai>
1 parent 432bf21 commit 86335dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rclcpp/resource/logging.hpp.em

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def get_rclcpp_suffix_from_features(features):
124124
) \
125125
do { \
126126
static_assert( \
127-
::std::is_same<typename std::remove_cv<typename std::remove_reference<decltype(logger)>::type>::type, \
127+
::std::is_same<typename std::remove_cv_t<typename std::remove_reference_t<decltype(logger)>>, \
128128
typename ::rclcpp::Logger>::value, \
129129
"First argument to logging macros must be an rclcpp::Logger"); \
130130
@[ if 'throttle' in feature_combination]@ \

0 commit comments

Comments
 (0)