Opened 13 years ago

#3406 new Bugs

False strong guarantee in documentation

Reported by: Kazutoshi Satoda <k_satoda@…> Owned by: Thorsten Ottosen
Milestone: Boost 1.41.0 Component: ptr_container
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:

Description

For many functions inserting pointers into a pointer container, the documentation says that they provide strong exception-safety guarantee while they are actually not. Instead, they perform delete on the passed pointer if an exception is thrown.

I propose the wording like this; "When an exception is thrown, nothing happens except performing delete x."

Note that replacing it with "basic guarantee" is over relaxing. One should be able to assume the contents of the container are unchanged when an exception is thrown.

This was first posted on the mailing list. http://lists.boost.org/Archives/boost/2009/08/155078.php

Change History (0)

Note: See TracTickets for help on using tickets.