This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::vector::insert => strong excepption guarantee?
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.