Opened 12 years ago
Closed 12 years ago
#4980 closed Bugs (fixed)
Intrusive multiset: insert doesn't preserve size counter when comparator throws
Reported by: | 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)
Change History (2)
by , 12 years ago
comment:1 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Updated SVN code, code sample works correctly. Thanks for the report.
Note:
See TracTickets
for help on using tickets.
bug demonstration