Browse Source

check lifetime bound of the string in the TStringInput/TStringOutput classes
f280ea4e6223f62e5ba0d89f9428dbbbf74de5f7

swarmer 7 months ago
parent
commit
be0f16c6e0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      util/stream/str.h

+ 2 - 2
util/stream/str.h

@@ -29,7 +29,7 @@ public:
      *
      * @param s                         String to read from.
      */
-    inline TStringInput(const TString& s) noexcept
+    inline TStringInput(const TString& s Y_LIFETIME_BOUND) noexcept
         : S_(&s)
         , Pos_(0)
     {
@@ -73,7 +73,7 @@ public:
      *
      * @param s                         String to append to.
      */
-    inline TStringOutput(TString& s) noexcept
+    inline TStringOutput(TString& s Y_LIFETIME_BOUND) noexcept
         : S_(&s)
     {
     }