Skip to content

Commit 5e314c2

Browse files
authored
Rename stringstream in macros to a more unique name (#1862)
* Rename stringstream in macros to a more unique name Signed-off-by: Doug Smith <douglas.smith@swri.org>
1 parent 6b321ed commit 5e314c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rclcpp/resource/logging.hpp.em

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ def get_rclcpp_suffix_from_features(features):
141141
}; \
142142
@[ end if] \
143143
@[ if 'stream' in feature_combination]@
144-
std::stringstream ss; \
145-
ss << @(stream_arg); \
144+
std::stringstream rclcpp_stream_ss_; \
145+
rclcpp_stream_ss_ << @(stream_arg); \
146146
@[ end if]@
147147
RCUTILS_LOG_@(severity)@(get_suffix_from_features(feature_combination))_NAMED( \
148148
@{params = ['get_time_point' if p == 'clock' and 'throttle' in feature_combination else p for p in params]}@
@@ -153,7 +153,7 @@ def get_rclcpp_suffix_from_features(features):
153153
@[ if 'stream' not in feature_combination]@
154154
__VA_ARGS__); \
155155
@[ else]@
156-
"%s", ss.str().c_str()); \
156+
"%s", rclcpp_stream_ss_.str().c_str()); \
157157
@[ end if]@
158158
} while (0)
159159

0 commit comments

Comments
 (0)