Add missing const

This commit is contained in:
Brian McKinnon
2020-05-02 17:09:10 -05:00
parent 0e723143fa
commit adc918235e
+1 -1
View File
@@ -3409,7 +3409,7 @@ public:
}
template <class K = key_type, class F>
bool if_contains(const key_arg<K>& key, F&& f) {
bool if_contains(const key_arg<K>& key, F&& f) const {
typename Lockable::SharedLock m;
auto it = const_cast<parallel_hash_map*>(this)->find(key, hash(key), m);
if (it == this->end())