diff options
author | vadim-xd <vadim-xd@yandex-team.com> | 2024-09-25 16:13:54 +0300 |
---|---|---|
committer | vadim-xd <vadim-xd@yandex-team.com> | 2024-09-25 16:28:15 +0300 |
commit | 8ae794f5031c0acd533e9b9ba70c5e063cf0f63b (patch) | |
tree | ee0b3e5ff3e7fa2b58cc3f7c9d5705473e33d334 /util | |
parent | ad946eabc17a47b71bfb0619b4c45d51e0a83f94 (diff) | |
download | ydb-8ae794f5031c0acd533e9b9ba70c5e063cf0f63b.tar.gz |
Make TNothing nodiscard
commit_hash:6ff089c6f629be6a68a94d1e1ee648630f8568d2
Diffstat (limited to 'util')
-rw-r--r-- | util/generic/maybe.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/generic/maybe.h b/util/generic/maybe.h index 46468e5166..ceaf4d66f0 100644 --- a/util/generic/maybe.h +++ b/util/generic/maybe.h @@ -20,7 +20,7 @@ namespace NMaybe { }; } // namespace NMaybe -struct TNothing { +struct [[nodiscard]] TNothing { explicit constexpr TNothing(int) noexcept { } }; |