diff --git a/parallel_hashmap/phmap.h b/parallel_hashmap/phmap.h index dca52bf..406697a 100644 --- a/parallel_hashmap/phmap.h +++ b/parallel_hashmap/phmap.h @@ -3401,7 +3401,7 @@ public: template bool contains(const key_arg& key, V& v) const { typename Lockable::SharedLock m; - auto it = const_cast(this)->find(key, hash(key), m); + auto it = const_cast(this)->find(key, Base::hash(key), m); if (it == this->end()) return false; v = Policy::value(&*it); @@ -3411,7 +3411,7 @@ public: template bool if_contains(const key_arg& key, F&& f) const { typename Lockable::SharedLock m; - auto it = const_cast(this)->find(key, hash(key), m); + auto it = const_cast(this)->find(key, Base::hash(key), m); if (it == this->end()) return false; std::forward(f)(Policy::value(&*it));