Unordered: Check that reserve works for both range and single element insert.

[SVN r78369]
This commit is contained in:
Daniel James
2012-05-07 18:10:04 +00:00
parent 6b44f3b887
commit 39aed02e32
2 changed files with 52 additions and 8 deletions

View File

@@ -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));