diff options
author | swarmer <swarmer@yandex-team.com> | 2025-03-08 00:16:40 +0300 |
---|---|---|
committer | swarmer <swarmer@yandex-team.com> | 2025-03-08 00:29:30 +0300 |
commit | c9f8def64215301bd8809a93f792277cbcacd9fe (patch) | |
tree | 2758f9b8c54463284b34720eb0c696ce12c90cda /contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/utils/json | |
parent | 732794c096f3c49d5f8c830c3b0c66514248025e (diff) | |
download | ydb-c9f8def64215301bd8809a93f792277cbcacd9fe.tar.gz |
[util] track the lifetime of strings passed through the StripString function family
Specialize StripString functions for the std::string_view and TStringBuf types.
An example of erroneous code in which the compiler will be able to detect a problem with the lifetime of temporary string:
```
TStringBuf sb = StripString(TStringBuf{" abc "s});
Use(sb); // segfault
```
commit_hash:ad47648de30fd1a7e59d39a8ec3918fd1484a0ba
Diffstat (limited to 'contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/source/utils/json')
0 files changed, 0 insertions, 0 deletions