diff --git a/DataStructures/HashTable.h b/DataStructures/HashTable.h index 090fb640a..e37993a1c 100644 --- a/DataStructures/HashTable.h +++ b/DataStructures/HashTable.h @@ -26,6 +26,18 @@ or see http://www.gnu.org/licenses/agpl.txt. #include +#include +#include + +namespace __gnu_cxx +{ + template<> struct hash { + size_t operator()(const std::string& x) const { + return hash()(x.c_str()); + } + }; +} + template class HashTable { typedef google::sparse_hash_map MyHashTable;