Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 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 5 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)

Changed 5 years ago by expaler

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 Changed 5 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

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

comment:2 Changed 5 years ago by anonymous

Oh, okay. Thanks!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.