From bf2d3fe7a276401cb2494eb93696930c001d8de7 Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 8 Feb 2022 14:10:10 -0500 Subject: [PATCH] fix msvc support for issue #128 when flag /Zc:__cplusplus not specified --- parallel_hashmap/phmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parallel_hashmap/phmap.h b/parallel_hashmap/phmap.h index a209016..578fc51 100644 --- a/parallel_hashmap/phmap.h +++ b/parallel_hashmap/phmap.h @@ -2647,7 +2647,7 @@ public: std::is_nothrow_default_constructible::value&& std::is_nothrow_default_constructible::value) {} -#if __cplusplus >= 201703L && (defined(_MSC_VER) || defined(__clang__) || (defined(__GNUC__) && __GNUC__ > 6)) +#if (__cplusplus >= 201703L || _MSVC_LANG >= 201402) && (defined(_MSC_VER) || defined(__clang__) || (defined(__GNUC__) && __GNUC__ > 6)) explicit parallel_hash_set(size_t bucket_cnt, const hasher& hash_param = hasher(), const key_equal& eq = key_equal(),