diff options
author | dtorilov <dtorilov@yandex-team.com> | 2024-08-20 14:27:10 +0300 |
---|---|---|
committer | dtorilov <dtorilov@yandex-team.com> | 2024-08-20 15:05:23 +0300 |
commit | f5f12e973b10c3b7f6966da0dc6b9273125dfe79 (patch) | |
tree | 209398b0f648d0bbcad84799dad2287b1e9e16df /library/cpp/yt/misc/cast-inl.h | |
parent | 8adfc2f460167ff853d657246cb553877a9b8795 (diff) | |
download | ydb-f5f12e973b10c3b7f6966da0dc6b9273125dfe79.tar.gz |
Revert "YT-21306: Add EnumHasDefaultValue"
This reverts commit d9b67f1778da2d15dd94f7285afe4e3490a233ab, reversing
changes made to 461a09e0c18bd14cef7df8060e7f9537e3ad74b5.
92cdaf4185661b7058f6a30d5a532ad40b725345
Diffstat (limited to 'library/cpp/yt/misc/cast-inl.h')
-rw-r--r-- | library/cpp/yt/misc/cast-inl.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/library/cpp/yt/misc/cast-inl.h b/library/cpp/yt/misc/cast-inl.h index 795682864f..a694394f88 100644 --- a/library/cpp/yt/misc/cast-inl.h +++ b/library/cpp/yt/misc/cast-inl.h @@ -124,10 +124,6 @@ T CheckedEnumCast(S value) { T result; if (!TryEnumCast<T>(value, &result)) { - if constexpr (TEnumHasDefaultValue<T>::value) { - return GetDefaultValue(T{}); - } - throw TSimpleException(Sprintf("Error casting %s value \"%d\" to enum %s", TypeName<S>().c_str(), static_cast<int>(value), |