Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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)

deque_insert_range.cpp (1.7 KB ) - added by expaler 10 years ago.
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.

Download all attachments as: .zip

Change History (3)

by expaler, 10 years ago

Attachment: deque_insert_range.cpp added

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.

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

Resolution: fixed
Status: newclosed

Thanks for the report and the test case. Fixed in revision #83467.

comment:2 by anonymous, 10 years ago

Oh, okay. Thanks!

Note: See TracTickets for help on using tickets.