diff --git a/enum.h b/enum.h index c3eee79..529666c 100644 --- a/enum.h +++ b/enum.h @@ -1283,17 +1283,15 @@ BETTER_ENUMS_CONSTEXPR_ map make_map(T (*f)(Enum)) } -#ifndef BETTER_ENUMS_DECLARE_STD_HASH #define BETTER_ENUMS_DECLARE_STD_HASH(type) \ namespace std { \ template <> struct hash \ { \ size_t operator()(const type &x) const \ { \ - return std::hash()(x._to_index()); \ + return std::hash()(x._to_integral()); \ } \ }; \ } -#endif #endif // #ifndef BETTER_ENUMS_ENUM_H