summaryrefslogtreecommitdiffstats
path: root/src/hash_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash_map.h')
-rw-r--r--src/hash_map.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/hash_map.h b/src/hash_map.h
index 9b98ca8..b57a631 100644
--- a/src/hash_map.h
+++ b/src/hash_map.h
@@ -88,26 +88,17 @@ struct StringPieceCmp : public hash_compare<StringPiece> {
};
#else
-
#include <ext/hash_map>
using __gnu_cxx::hash_map;
namespace __gnu_cxx {
template<>
-struct hash<std::string> {
- size_t operator()(const std::string& s) const {
- return hash<const char*>()(s.c_str());
- }
-};
-
-template<>
struct hash<StringPiece> {
size_t operator()(StringPiece key) const {
return MurmurHash2(key.str_, key.len_);
}
};
-
}
#endif