From 9517c4879c40670d45ac968425c5cea9d98e87df Mon Sep 17 00:00:00 2001 From: Sven Scharmentke Date: Thu, 11 Jul 2019 09:32:06 +0200 Subject: [PATCH] Handled review notes. --- enum.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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