From 88379d989d2a57cd46b2389751590b3ddc4ebef2 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sat, 3 Jan 2015 18:50:32 -0800 Subject: [PATCH] Try to simplify d1e6a29 a bit. --- src/hash_map.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hash_map.h b/src/hash_map.h index b57a631..abdba92 100644 --- a/src/hash_map.h +++ b/src/hash_map.h @@ -57,10 +57,10 @@ namespace std { template<> struct hash { 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_); } }; } -- 2.7.4