diff --git a/parallel_hashmap/phmap.h b/parallel_hashmap/phmap.h index 0a38a7d..4791996 100644 --- a/parallel_hashmap/phmap.h +++ b/parallel_hashmap/phmap.h @@ -3394,8 +3394,8 @@ public: } template - std::enable_if_t::value - , bool> if_contains(const key_arg& key, V& v) const { + typename std::enable_if::value + , bool>::type if_contains(const key_arg& key, V& v) const { typename Lockable::SharedLock m; auto it = const_cast(this)->find(key, this->hash(key), m); if (it == this->end()) @@ -3405,11 +3405,11 @@ public: } template - std::enable_if_t::value + typename std::enable_if::value #if __cplusplus >= 201703L && std::is_invocable::value #endif - , bool> if_contains(const key_arg& key, F&& f) const { + , bool>::type if_contains(const key_arg& key, F&& f) const { typename Lockable::SharedLock m; auto it = const_cast(this)->find(key, this->hash(key), m); if (it == this->end())