diff options
Diffstat (limited to 'src/hash_map.hh')
| -rw-r--r-- | src/hash_map.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash_map.hh b/src/hash_map.hh index dcf76d42..eef082dd 100644 --- a/src/hash_map.hh +++ b/src/hash_map.hh @@ -239,7 +239,7 @@ struct HashMap constexpr bool contains(const KeyType& key) const { return find_index(key) >= 0; } template<typename KeyType> requires IsHashCompatible<Key, std::remove_cvref_t<KeyType>> - constexpr EffectiveValue& operator[](KeyType&& key) + constexpr EffectiveValue& operator[](KeyType&& key) { const auto hash = hash_value(key); auto index = find_index(key, hash); |
