From 9b2ec7257758a94e9d0908b813cc89b8128f9b48 Mon Sep 17 00:00:00 2001 From: greg Date: Thu, 28 Mar 2019 21:02:07 -0400 Subject: [PATCH] macos compilation issue --- parallel_hashmap/phmap_fwd_decl.h | 19 ++++++++++++------- parallel_hashmap/phmap_utils.h | 5 +++-- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/parallel_hashmap/phmap_fwd_decl.h b/parallel_hashmap/phmap_fwd_decl.h index 068d68d..4fc006a 100644 --- a/parallel_hashmap/phmap_fwd_decl.h +++ b/parallel_hashmap/phmap_fwd_decl.h @@ -36,7 +36,7 @@ namespace std { - template struct pair; + //template using Pair = template struct pair; } namespace phmap { @@ -63,8 +63,9 @@ namespace phmap { template using hash_default_eq = typename container_internal::HashEq::Eq; - template - using Allocator = typename phmap::Allocator; + template using Allocator = typename phmap::Allocator; + + template using Pair = typename phmap::Pair; } // namespace container_internal @@ -77,7 +78,8 @@ namespace phmap { template , class Eq = phmap::container_internal::hash_default_eq, - class Alloc = phmap::container_internal::Allocator>> + class Alloc = phmap::container_internal::Allocator< + phmap::container_internal::Pair>> class flat_hash_map; template , class Eq = phmap::container_internal::hash_default_eq, - class Alloc = phmap::container_internal::Allocator>> + class Alloc = phmap::container_internal::Allocator< + phmap::container_internal::Pair>> class node_hash_map; template , class Eq = phmap::container_internal::hash_default_eq, - class Alloc = phmap::container_internal::Allocator>, + class Alloc = phmap::container_internal::Allocator< + phmap::container_internal::Pair>, size_t N = 4, // 2**N submaps class Mutex = phmap::NullMutex> // use std::mutex to enable internal locks class parallel_flat_hash_map; @@ -119,7 +123,8 @@ namespace phmap { template , class Eq = phmap::container_internal::hash_default_eq, - class Alloc = phmap::container_internal::Allocator>, + class Alloc = phmap::container_internal::Allocator< + phmap::container_internal::Pair>, size_t N = 4, // 2**N submaps class Mutex = phmap::NullMutex> // use std::mutex to enable internal locks class parallel_node_hash_map; diff --git a/parallel_hashmap/phmap_utils.h b/parallel_hashmap/phmap_utils.h index 961ec25..5cf9a8a 100644 --- a/parallel_hashmap/phmap_utils.h +++ b/parallel_hashmap/phmap_utils.h @@ -44,8 +44,9 @@ namespace phmap template T phmap_min(T a, T b) { return a < b ? a : b; } template T phmap_max(T a, T b) { return a >= b ? a : b; } -template -using Allocator = typename std::allocator; +template using Allocator = typename std::allocator; + +template using Pair = typename std::pair; template struct EqualTo