forked from boostorg/unordered
Unordered: Check that reserve works for both range and single element insert.
[SVN r78369]
This commit is contained in:
1 parent
6b44f3b887
commit
39aed02e32
2 files changed
+52
-8
No files matched your search
@@ -535,7 +535,7 @@ namespace boost { namespace unordered { namespace detail {
|
||||
a.construct_node();
|
||||
a.construct_value2(*i);
|
||||
|
||||
if(this->size_ + 1 >= this->max_load_)
|
||||
if(this->size_ + 1 > this->max_load_)
|
||||
this->reserve_for_insert(this->size_ +
|
||||
boost::unordered::detail::insert_size(i, j));
|
||||
|
||||
|
||||
Reference in new issue
Block a user