diff options
author | dgolear <dgolear@yandex-team.com> | 2024-10-10 11:05:17 +0300 |
---|---|---|
committer | dgolear <dgolear@yandex-team.com> | 2024-10-10 11:34:56 +0300 |
commit | 9e123c4656b0ef4973531b837f30e9e542207590 (patch) | |
tree | 2b0ace1c8b13b4da76c50b03d3cde321395484fe /library/cpp/yt/misc/enum.h | |
parent | 2d78fdbaebf316aaddd8674538b6d2fcd9e095d7 (diff) | |
download | ydb-9e123c4656b0ef4973531b837f30e9e542207590.tar.gz |
YT: Support plain enum deserialization
(HIDDEN_URL
commit_hash:d9358ac48da1ab4a4ef9ccdbf7eb77a100cf3897
Diffstat (limited to 'library/cpp/yt/misc/enum.h')
-rw-r--r-- | library/cpp/yt/misc/enum.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/cpp/yt/misc/enum.h b/library/cpp/yt/misc/enum.h index 954b63cbc0..4d40ab8ec4 100644 --- a/library/cpp/yt/misc/enum.h +++ b/library/cpp/yt/misc/enum.h @@ -26,6 +26,9 @@ namespace NYT { template <class T> void GetEnumTraitsImpl(T); +template <class T, class S> +constexpr bool CanFitSubtype(); + template <class T> using TEnumTraitsImpl = decltype(GetEnumTraitsImpl(T())); |