forked from boostorg/container
Fixed error in insertions with input iterator ranges
[SVN r80193]
This commit is contained in:
1 parent
2947abfdef
commit
011f1fb181
2 files changed
+6
-3
No files matched your search
@@ -1603,8 +1603,10 @@ class deque : protected deque_base<T, A>
|
||||
template <class InpIt>
|
||||
void priv_insert_aux(const_iterator pos, InpIt first, InpIt last, std::input_iterator_tag)
|
||||
{
|
||||
iterator it(pos);
|
||||
for(;first != last; ++first){
|
||||
this->insert(pos, boost::move(value_type(*first)));
|
||||
it = this->emplace(it, *first);
|
||||
++it;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user