|
|
@@ -404,8 +404,7 @@ public:
|
|
|
*/
|
|
|
explicit dense_map(const size_type cnt, const hasher &hash = hasher{}, const key_equal &equal = key_equal{}, const allocator_type &allocator = allocator_type{})
|
|
|
: sparse{allocator, hash},
|
|
|
- packed{allocator, equal},
|
|
|
- threshold{default_threshold} {
|
|
|
+ packed{allocator, equal} {
|
|
|
rehash(cnt);
|
|
|
}
|
|
|
|
|
|
@@ -1025,7 +1024,7 @@ public:
|
|
|
private:
|
|
|
compressed_pair<sparse_container_type, hasher> sparse;
|
|
|
compressed_pair<packed_container_type, key_equal> packed;
|
|
|
- float threshold;
|
|
|
+ float threshold{default_threshold};
|
|
|
};
|
|
|
|
|
|
} // namespace entt
|