aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/join.h
diff options
context:
space:
mode:
authorswarmer <swarmer@yandex-team.com>2024-09-26 22:16:03 +0300
committerswarmer <swarmer@yandex-team.com>2024-09-26 22:36:37 +0300
commit69ce19dae9cc421f3d3a3b650e01b2f9bece79b5 (patch)
treeb73fa8fbd2b795a54301e37aaaa6259811040823 /util/string/join.h
parent9598e6ce746a6ae937ccc291c9c5e64db14ce62e (diff)
downloadydb-69ce19dae9cc421f3d3a3b650e01b2f9bece79b5.tar.gz
check lifetime bound of output streams
commit_hash:17de7afe0f415c511e587b2f2607cbbc2348742e
Diffstat (limited to 'util/string/join.h')
-rw-r--r--util/string/join.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/string/join.h b/util/string/join.h
index 720951abc5..f0d28df291 100644
--- a/util/string/join.h
+++ b/util/string/join.h
@@ -203,7 +203,7 @@ JoinSeq(TCharType delim, const TContainer& data) {
*/
template <class TIterB, class TIterE>
struct TRangeJoiner {
- friend constexpr IOutputStream& operator<<(IOutputStream& stream, const TRangeJoiner<TIterB, TIterE>& rangeJoiner) {
+ friend constexpr IOutputStream& operator<<(IOutputStream& stream Y_LIFETIME_BOUND, const TRangeJoiner<TIterB, TIterE>& rangeJoiner) {
if (rangeJoiner.b != rangeJoiner.e) {
stream << *rangeJoiner.b;