Opened 10 years ago

Closed 10 years ago

#8299 closed Bugs (duplicate)

deque::insert(const_iterator, Iterator, Iterator) misbehavior

Reported by: expaler Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: container
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:

Description

When the const_iterator argument points to a valid position in the boost::container::deque that is not past-the-end, the range-variant insert() method places the element copies in the wrong order.

Attachments (1)

deque_insert_range.cpp (1.7 KB ) - added by expaler 10 years ago.
This test program compares the behavior of boost::container::deque::insert() with that of std::deque::insert(). Currently it reports errors on lines 40 and 41. Note that using the single-element variant of boost::container::deque::insert() to achieve the same desired result works as intended.

Download all attachments as: .zip

Change History (2)

by expaler, 10 years ago

Attachment: deque_insert_range.cpp added

This test program compares the behavior of boost::container::deque::insert() with that of std::deque::insert(). Currently it reports errors on lines 40 and 41. Note that using the single-element variant of boost::container::deque::insert() to achieve the same desired result works as intended.

comment:1 by Ion Gaztañaga, 10 years ago

Resolution: duplicate
Status: newclosed

Duplicate of bug #8294

Note: See TracTickets for help on using tickets.