1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-20 01:14:21 +00:00

add suport enum_switch without defined MAGIC_ENUM_ENABLE_HASH

This commit is contained in:
neargye 2022-11-08 20:21:00 +04:00
parent c588771875
commit 612033ab5d
2 changed files with 56 additions and 2 deletions

View file

@ -732,6 +732,7 @@ template <typename T>
struct underlying_type<T, true> : std::underlying_type<std::decay_t<T>> {};
#if defined(MAGIC_ENUM_ENABLE_HASH)
template <typename T>
inline constexpr bool has_hash = true;