diff options
author | ifsmirnov <ifsmirnov@yandex-team.ru> | 2022-02-10 16:50:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:47 +0300 |
commit | 40f16eaadf04f8fe775e16658c8d89ed6a29b2ee (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/yt/misc/enum-inl.h | |
parent | ad765dc0fb7b0cb321bc9f6ec29aaeefe70019af (diff) | |
download | ydb-40f16eaadf04f8fe775e16658c8d89ed6a29b2ee.tar.gz |
Restoring authorship annotation for <ifsmirnov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yt/misc/enum-inl.h')
-rw-r--r-- | library/cpp/yt/misc/enum-inl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/yt/misc/enum-inl.h b/library/cpp/yt/misc/enum-inl.h index 1d2230777ac..59ef7047753 100644 --- a/library/cpp/yt/misc/enum-inl.h +++ b/library/cpp/yt/misc/enum-inl.h @@ -162,18 +162,18 @@ static constexpr bool AreValuesDistinct(const TValues& values) { \ static_assert(!Values.empty()); \ return *std::min_element(std::begin(Values), std::end(Values)); \ - } \ - \ + } \ + \ static constexpr TType GetMaxValue() \ - { \ + { \ static_assert(!Values.empty()); \ return *std::max_element(std::begin(Values), std::end(Values)); \ - } - + } + #define ENUM__VALIDATE_UNIQUE(name) \ static_assert(::NYT::NDetail::AreValuesDistinct(Values), \ "Enumeration " #name " contains duplicate values"); - + #define ENUM__END_TRAITS(name) \ }; \ \ |