From 73b0e6344565cf921718272a265d7c088cbf6c96 Mon Sep 17 00:00:00 2001 From: Brian McKinnon Date: Sat, 2 May 2020 21:39:23 -0500 Subject: [PATCH] Fixed enable_if_t is a c++14 feature --- parallel_hashmap/phmap.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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())