diff --git a/util/hash_map.h b/util/hash_map.h index 6eb42506b..e3ad2584f 100644 --- a/util/hash_map.h +++ b/util/hash_map.h @@ -36,7 +36,7 @@ class HashMap { return it != bucket.end(); } - void Insert(K key, V value) { + void Insert(K key, const V& value) { auto& bucket = table_[key % size]; bucket.push_back({key, value}); }