std::vector::insert => strong excepption guarantee?
Paolo Carlini
pcarlini@suse.de
Sat May 29 17:32:00 GMT 2004
Paolo Carlini wrote:
> Sorry, probably I'm wrong: I have to study in better detail what
> happens in those
> try/catch blocks.
Well, Josuttis, 5.11.2 and then 6.10.10, is a *very* interesting reading
about this
subject, it says, about vector::insert:
"Either succeeds or has no effect if copying/assigning elements
doesn't throw"
Indeed, the SGI/HP code appear to conform to this requirement, which is
not really
the strong guarantee.
Paolo.
More information about the Libstdc++
mailing list