diff options
| -rw-r--r-- | util/generic/string.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/generic/string.h b/util/generic/string.h index 0a75732eee9..5fe507200d6 100644 --- a/util/generic/string.h +++ b/util/generic/string.h @@ -346,7 +346,7 @@ public: #endif } - TCharType* Detach() { + TCharType* Detach() Y_LIFETIME_BOUND { #ifdef TSTRING_IS_STD_STRING return Storage_.data(); #else @@ -857,12 +857,12 @@ public: return *this; } - operator const TStringType&() const noexcept { + operator const TStringType&() const noexcept Y_LIFETIME_BOUND { return this->ConstRef(); } template <typename T, typename = std::enable_if_t<std::is_same_v<T, TStringType>>> - operator T&() & { + operator T&() & Y_LIFETIME_BOUND { return this->MutRef(); } |
