aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorswarmer <swarmer@yandex-team.com>2024-08-07 00:20:13 +0300
committerswarmer <swarmer@yandex-team.com>2024-08-07 00:47:06 +0300
commit0d7c47ec48cc2d7664630b9cc19d2fddc03ec0e3 (patch)
treea8cf2fdb862a0ec2178901076fdc06278f35e179
parent1934894f381e2d6dff72600dfe60173c200f6067 (diff)
downloadydb-0d7c47ec48cc2d7664630b9cc19d2fddc03ec0e3.tar.gz
check the lifetime bound of the TStringBuf, constructed from a TStringBuf with different char-traits
8b52c36ebe25af42f8b0dae4d83fc067760600ba
-rw-r--r--util/generic/strbuf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/generic/strbuf.h b/util/generic/strbuf.h
index fa11e39cf1..5c741f7d3b 100644
--- a/util/generic/strbuf.h
+++ b/util/generic/strbuf.h
@@ -137,13 +137,13 @@ public:
}
template <typename TCharTraits>
- constexpr TBasicStringBuf(std::basic_string_view<TCharType, TCharTraits> view) noexcept
+ constexpr TBasicStringBuf(std::basic_string_view<TCharType, TCharTraits> view Y_LIFETIME_BOUND) noexcept
: TStringView(view)
{
}
template <typename TCharTraits>
- constexpr TBasicStringBuf(TBasicStringBuf<TCharType, TCharTraits> sb) noexcept
+ constexpr TBasicStringBuf(TBasicStringBuf<TCharType, TCharTraits> sb Y_LIFETIME_BOUND) noexcept
: TStringView(sb)
{
}