diff --git a/parallel_hashmap/phmap_base.h b/parallel_hashmap/phmap_base.h index 2797682..0b6674a 100644 --- a/parallel_hashmap/phmap_base.h +++ b/parallel_hashmap/phmap_base.h @@ -329,7 +329,7 @@ template using underlying_type_t = typename std::underlying_type::type; template< class F, class... ArgTypes> -#if __cplusplus >= 201703L +#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) using invoke_result_t = typename std::invoke_result_t; #else using invoke_result_t = typename std::result_of::type;