Use emplace instead or push_back in priv_insert_ordered_range

This commit is contained in:
Ion Gaztañaga
2014-09-20 17:30:09 +02:00
parent 1e40192e96
commit 76fcab1a09

View File

@@ -983,7 +983,9 @@ class flat_tree
BidirIt next(first);
++next;
if(next == last || val_cmp(*first, *next)){
this->m_data.m_vect.push_back(*first);
const bool room = this->m_data.m_vect.stable_emplace_back(*first);
(void)room;
BOOST_ASSERT(room);
}
first = next;
}