Undo latest change as I have issues building it with g++

This commit is contained in:
greg
2022-01-31 20:53:22 -05:00
parent 22121fa3ce
commit dab73d4b0e
+11 -2
View File
@@ -2470,8 +2470,7 @@ protected:
Inner() {}
Inner(Params const &p) :
set_(p.bucket_cnt, p.hashfn, p.eq, p.alloc)
Inner(Params const &p) : set_(p.bucket_cnt, p.hashfn, p.eq, p.alloc)
{}
bool operator==(const Inner& o) const
@@ -2648,6 +2647,15 @@ public:
std::is_nothrow_default_constructible<key_equal>::value&&
std::is_nothrow_default_constructible<allocator_type>::value) {}
#if 1
explicit parallel_hash_set(size_t bucket_cnt,
const hasher& hash_param = hasher(),
const key_equal& eq = key_equal(),
const allocator_type& alloc = allocator_type()) {
for (auto& inner : sets_)
inner.set_ = EmbeddedSet(bucket_cnt / N, hash_param, eq, alloc);
}
#else
explicit parallel_hash_set(size_t bucket_cnt,
const hasher& hash_param = hasher(),
const key_equal& eq = key_equal(),
@@ -2660,6 +2668,7 @@ public:
parallel_hash_set(typename Inner::Params const &p,
phmap::index_sequence<i...>) : sets_{((void)i, p)...}
{}
#endif
parallel_hash_set(size_t bucket_cnt,
const hasher& hash_param,