--- src/HashMap.h.orig 2018-09-05 21:12:33 UTC +++ src/HashMap.h @@ -34,55 +34,10 @@ template class FrobbyHash {}; -// ********************************************************* -#ifdef __GNUC__ // Only GCC defines this macro -#include "hash_map/hash_map" -#include - -template<> -class FrobbyHash : public __gnu_cxx::hash { -}; - -template -class HashMap : public __gnu_cxx::hash_map > { -}; - -#else - -// ********************************************************* -#ifdef _MSC_VER // Only Microsoft C++ defines this macro -#include -#include - -template -class HashWrapper : public stdext::hash_compare >, FrobbyHash { -public: - size_t operator()(const Key& key) const { - return FrobbyHash::operator()(key); - } - - bool operator()(const Key& a, const Key& b) const { - return stdext::hash_compare >::operator()(a, b); - } -}; - -template<> -class HashWrapper : public stdext::hash_compare > { -}; - -template -class HashMap : public stdext::hash_map > { -}; - -// ********************************************************* -#else // Fall-back for unknown compilers #include template class HashMap : public std::map { }; -#endif -#endif #endif