Skip to content

Commit ecf4ac4

Browse files
Fix logging macros to build with msvc and cpp20 (ros2#2063) (ros2#2529)
Signed-off-by: Mateusz Szczygielski <[email protected]> Signed-off-by: Mateusz Szczygielski <[email protected]> (cherry picked from commit 86335dd) Co-authored-by: Mateusz Szczygielski <[email protected]>
1 parent 058b54f commit ecf4ac4

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
@@ -125,7 +125,7 @@ def get_rclcpp_suffix_from_features(features):
125125
) \
126126
do { \
127127
static_assert( \
128-
::std::is_same<typename std::remove_cv<typename std::remove_reference<decltype(logger)>::type>::type, \
128+
::std::is_same<typename std::remove_cv_t<typename std::remove_reference_t<decltype(logger)>>, \
129129
typename ::rclcpp::Logger>::value, \
130130
"First argument to logging macros must be an rclcpp::Logger"); \
131131
@[ if 'throttle' in feature_combination]@ \

0 commit comments

Comments
 (0)