diff --git a/CepGen/Core/Hasher.h b/CepGen/Core/Hasher.h index d4c1149..b00f6da 100644 --- a/CepGen/Core/Hasher.h +++ b/CepGen/Core/Hasher.h @@ -1,37 +1,37 @@ #ifndef CepGen_Core_Hasher_h #define CepGen_Core_Hasher_h #include <cstddef> #include <functional> namespace cepgen { /// A hasher table for a given structure template<class T,bool> - struct hasher + struct Hasher { inline size_t operator()( const T& t ) const { return std::hash<T>()( t ); } }; /// A hasher table for a given structure template<class T> - struct hasher<T, true> + struct Hasher<T, true> { inline size_t operator() ( const T& t ) { typedef typename std::underlying_type<T>::type enumType; return std::hash<enumType>()( static_cast<enumType>( t ) ); } }; /// A hasher table for an enumeration template<class T> struct EnumHash { inline size_t operator()( const T& t ) const { - return hasher<T,std::is_enum<T>::value>()( t ); + return Hasher<T,std::is_enum<T>::value>()( t ); } }; } #endif