Try to simplify d1e6a29 a bit.
authorNico Weber <nicolasweber@gmx.de>
Sun, 4 Jan 2015 02:50:32 +0000 (18:50 -0800)
committerNico Weber <nicolasweber@gmx.de>
Sun, 4 Jan 2015 03:14:41 +0000 (19:14 -0800)
src/hash_map.h

index b57a631..abdba92 100644 (file)
@@ -57,10 +57,10 @@ namespace std {
 template<>
 struct hash<StringPiece> {
   typedef StringPiece argument_type;
-  typedef std::size_t result_type;
+  typedef size_t result_type;
 
-  result_type operator()(argument_type const& s) const {
-    return MurmurHash2(s.str_, s.len_);
+  size_t operator()(StringPiece key) const {
+    return MurmurHash2(key.str_, key.len_);
   }
 };
 }