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 | ad765dc0fb7b0cb321bc9f6ec29aaeefe70019af (patch) | |
tree | 055f4a12781f86fdcbb52fc251c7bd71506c2825 /library/cpp/yt/misc/enum-inl.h | |
parent | 1fc0bdffa16f1d19af9025338185cc8533b09606 (diff) | |
download | ydb-ad765dc0fb7b0cb321bc9f6ec29aaeefe70019af.tar.gz |
Restoring authorship annotation for <ifsmirnov@yandex-team.ru>. Commit 1 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 59ef7047753..1d2230777ac 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) \ }; \ \ |