Modify

Opened 5 years ago

Closed 5 years ago

#7439 closed Bugs (fixed)

flat_map/set::insert(ordered_unique_range_t, ...) not work correctly

Reported by: Jamboree Owned by: Ion Gaztañaga
Milestone: Boost 1.52.0 Component: container
Version: Boost 1.51.0 Severity: Problem
Keywords: Cc: tongari95@…, phprus@…

Description

The special ordered_unique_range insertion doesn't work as expected.

For example, inserting {2, 3} into {1, 4} should result in {1, 2, 3, 4}, but we get {1, 4}.
While inserting {2, 4} into {1, 3} give us {1, 3, 4}, 2 is lost somewhere.
It seems that you can only insert elements ordered after the range.

Attachments (1)

main.cpp (406 bytes) - added by Jamboree 5 years ago.
demo

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by Jamboree

Attachment: main.cpp added

demo

comment:1 Changed 5 years ago by tongari95@…

Cc: tongari95@… added

comment:2 Changed 5 years ago by Vladislav <phprus@…>

Cc: phprus@… added

comment:3 Changed 5 years ago by Ion Gaztañaga

Milestone: To Be DeterminedBoost 1.52.0
Resolution: fixed
Status: newclosed

Added fix in trunk, at revision 80743, I'll merge to the release branch in a couple of days for Boost 1.52.

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.