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.h6
1 files 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<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_);
}
};
}