mirror of
https://github.com/boostorg/unordered.git
synced 2025-10-16 09:25:25 +02:00
Unordered: Check that reserve works for both range and single element insert.
[SVN r78369]
This commit is contained in:
@@ -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