Subject: [Boost-bugs] [Boost C++ Libraries] #3406: False strong guarantee in documentation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-05 17:04:27
#3406: False strong guarantee in documentation
-------------------------------------------------------+--------------------
Reporter: Kazutoshi Satoda <k_satoda@â¦> | Owner: nesotto
Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: ptr_container
Version: Boost 1.40.0 | Severity: Problem
Keywords: |
-------------------------------------------------------+--------------------
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
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3406> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC