This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::vector::insert => strong excepption guarantee?
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: Dhruv Matani <dhruvbird at gmx dot net>,libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Sat, 29 May 2004 13:07:48 +0200
- Subject: Re: std::vector::insert => strong excepption guarantee?
- References: <1085801289.1174.4.camel@localhost.localdomain> <40B86D8C.7050203@suse.de>
Paolo Carlini wrote:
My impression is that the strong guarantee is very rare in library and
insert
provides a basic one (for instance, in various places in the
implementation of
<vector> you may find copy/move operations intermixed with _Construct:
if the
latter throws the catch only frees the memory)
Sorry, probably I'm wrong: I have to study in better detail what happens
in those
try/catch blocks.
While we are at it: what do people think, in general, about a large
scale QoI
project aimed at providing the strong guarantee wherever possible?
This point remains, however!
Paolo.