#8294 closed Bugs (fixed)
deque::insert(const_iterator, Itr, Itr) 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 deque that is not past-the-end, the range elements are inserted in the wrong order.
Attachments (1)
Change History (3)
by , 10 years ago
Attachment: | deque_insert_range.cpp added |
---|
comment:1 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the report and the test case. Fixed in revision #83467.
Note:
See TracTickets
for help on using tickets.
This test program compares the behavior of boost::container::deque with that of std::deque. Currently it reports errors at lines 40 and 41, after range insertion into the boost::container::deque. Note that using single-element insertion into the boost::container::deque to accomplish the desired result works as intended.