forked from boostorg/unordered
Fix assigning hash/key equality functions for empty containers
This commit is contained in:
1 parent
3db4654b44
commit
33f701dd09
2 files changed
+19
-2
No files matched your search
@@ -589,7 +589,10 @@ namespace boost { namespace unordered { namespace detail {
|
||||
mlf_ = x.mlf_;
|
||||
recalculate_max_load();
|
||||
|
||||
if (!size_ && !x.size_) return;
|
||||
if (!size_ && !x.size_) {
|
||||
new_func_this.commit();
|
||||
return;
|
||||
}
|
||||
|
||||
if (x.size_ >= max_load_) {
|
||||
create_buckets(min_buckets_for_size(x.size_));
|
||||
|
||||
Reference in new issue
Block a user