Modify

Opened 7 years ago

Closed 7 years ago

#4980 closed Bugs (fixed)

Intrusive multiset: insert doesn't preserve size counter when comparator throws

Reported by: michal.pecio@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: intrusive
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

multiset::insert() doesn't seem to preserve the "constant time size" counter when comparator throws despite supposedly providing strong guarantee.

Other containers and methods might also be affected, I haven't tested them.

The problem definitely exists in 1.44 and, if I've configured my compiler properly, in svn.

I'm going to attach a code sample which triggers the bug.

Attachments (1)

bug.cc (965 bytes) - added by michal.pecio@… 7 years ago.
bug demonstration

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by michal.pecio@…

Attachment: bug.cc added

bug demonstration

comment:1 Changed 7 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

Updated SVN code, code sample works correctly. Thanks for the report.

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.