diff options
author | swarmer <swarmer@yandex-team.com> | 2024-08-07 00:20:28 +0300 |
---|---|---|
committer | swarmer <swarmer@yandex-team.com> | 2024-08-07 00:51:52 +0300 |
commit | 0e66090a90e6a55094d0f535599682b4adc04046 (patch) | |
tree | 0d1479d23d462db8ca779a8dca6c30aa9595a8ef /util/generic/strbuf.h | |
parent | 0d7c47ec48cc2d7664630b9cc19d2fddc03ec0e3 (diff) | |
download | ydb-0e66090a90e6a55094d0f535599682b4adc04046.tar.gz |
check the lifetime bound of the TStringBuf, constructed from a substring of an another TStringBuf view
834bc8b5ef002eb217450def12b8887b071f3d5f
Diffstat (limited to 'util/generic/strbuf.h')
-rw-r--r-- | util/generic/strbuf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/generic/strbuf.h b/util/generic/strbuf.h index 5c741f7d3b..27237b1a32 100644 --- a/util/generic/strbuf.h +++ b/util/generic/strbuf.h @@ -159,13 +159,13 @@ public: */ } - inline TBasicStringBuf(const TBasicStringBuf& src, size_t pos, size_t n) noexcept + inline TBasicStringBuf(const TBasicStringBuf src Y_LIFETIME_BOUND, size_t pos, size_t n) noexcept : TBasicStringBuf(src) { Skip(pos).Trunc(n); } - inline TBasicStringBuf(const TBasicStringBuf& src, size_t pos) noexcept + inline TBasicStringBuf(const TBasicStringBuf src Y_LIFETIME_BOUND, size_t pos) noexcept : TBasicStringBuf(src, pos, TBase::npos) { } |