From 5a18a495354d009a67269333e09f63647c0a46dc Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Wed, 6 Jan 2016 15:04:58 +0200 Subject: [PATCH] Attempt fix linux --- BindingMap.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/BindingMap.h b/BindingMap.h index f3063ed..de0a1bf 100644 --- a/BindingMap.h +++ b/BindingMap.h @@ -10,7 +10,6 @@ #include #include "Common.h" #include "ElunaUtility.h" -#include "Hooks.h" #include extern "C" @@ -278,14 +277,9 @@ public: template static inline result_type hash(T const & t) { - return std::hash()(t); - } - - template < typename T, std::enable_if_t::value> > - static inline result_type hash(T const & t) - { - typedef std::underlying_type::type Enum_type; - return std::hash()(static_cast(t)); + // Possibly convert int to std::underlying_type or find another way + using Hasher = typename std::conditional< std::is_enum::value, std::hash, std::hash >::type; + return Hasher()(t); } private: