Ticket #4980 (closed Bugs: fixed)

Opened 6 years ago

Last modified 6 years ago

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

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


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 (965 bytes) - added by michal.pecio@… 6 years ago.
bug demonstration

Change History

Changed 6 years ago by michal.pecio@…

bug demonstration

comment:1 Changed 6 years ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed

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


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

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

Note: See TracTickets for help on using tickets.