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:
parent
c588771875
commit
612033ab5d
2 changed files with 56 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue