diff options
author | swarmer <swarmer@yandex-team.com> | 2024-07-24 00:41:03 +0300 |
---|---|---|
committer | swarmer <swarmer@yandex-team.com> | 2024-07-24 00:53:49 +0300 |
commit | 526d5a422b6ab6b2383b56eca9d1b84462ee2050 (patch) | |
tree | cc27ba1be36089232d21c31b7623ea2969085570 | |
parent | b0580144715636e64c82ba3dad18cb8052a7e297 (diff) | |
download | ydb-526d5a422b6ab6b2383b56eca9d1b84462ee2050.tar.gz |
check lifetime bounds of TStringBuf constructed from std::string
b8ba3acb34e82c520e14aad6e491130963fcee55
-rw-r--r-- | util/generic/strbuf.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/generic/strbuf.h b/util/generic/strbuf.h index 77644a2f6c..a7a5eba079 100644 --- a/util/generic/strbuf.h +++ b/util/generic/strbuf.h @@ -5,6 +5,8 @@ #include "utility.h" #include "typetraits.h" +#include <util/system/compiler.h> + #include <string_view> using namespace std::string_view_literals; @@ -123,7 +125,7 @@ public: } template <typename T, typename A> - inline TBasicStringBuf(const std::basic_string<TCharType, T, A>& str) noexcept + inline TBasicStringBuf(const std::basic_string<TCharType, T, A>& str Y_LIFETIME_BOUND) noexcept : TStringView(str) { } |