diff --git a/examples/basic.cc b/examples/basic.cc index 2b7f050..f83d6fb 100644 --- a/examples/basic.cc +++ b/examples/basic.cc @@ -7,12 +7,7 @@ using phmap::flat_hash_map; int main() { // Create an unordered_map of three strings (that map to strings) - flat_hash_map email = - { - { "tom", "tom@gmail.com"}, - { "jeff", "jk@gmail.com"}, - { "jim", "jimg@microsoft.com"} - }; + flat_hash_map email; // Iterate and print keys and values for (const auto& n : email) diff --git a/parallel_hashmap/phmap_base.h b/parallel_hashmap/phmap_base.h index ed546c9..8df91e4 100644 --- a/parallel_hashmap/phmap_base.h +++ b/parallel_hashmap/phmap_base.h @@ -4275,7 +4275,13 @@ constexpr bool IsFinal() { template constexpr bool ShouldUseBase() { - return std::is_class::value && std::is_empty::value && !IsFinal(); +#ifdef __INTEL_COMPILER + // avoid crash in Intel compiler + // assertion failed at: "shared/cfe/edgcpfe/lower_init.c", line 7013 + return false; +#else + return std::is_class::value && std::is_empty::value && !IsFinal(); +#endif } // The storage class provides two specializations: