summaryrefslogtreecommitdiffstats
path: root/base/hash_tables.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/hash_tables.h')
-rw-r--r--base/hash_tables.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/base/hash_tables.h b/base/hash_tables.h
index c2d3ddb..0ac2651 100644
--- a/base/hash_tables.h
+++ b/base/hash_tables.h
@@ -77,7 +77,14 @@ struct hash<const std::string> {
size_t operator()(const std::string& s) const {
return std::tr1::hash<std::string>()(s);
}
-};
+};
+
+template<>
+struct hash<long long> {
+ size_t operator()(long long i) const {
+ return std::tr1::hash<long>()((long) i);
+ }
+};
}