This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::vector::insert => strong excepption guarantee?
Dhruv Matani wrote:
Well, Josuttis
I don't have that book ;-(
The relevant pages are only a few, 3-4. Perhaps you my find it in a library?
Indeed, the SGI/HP code appear to conform to this requirement, which is
not really the strong guarantee.
Even I think so. However, the strong guarantee would be when the copy
ctor and assignment are allowed to throw, and still the code behaves as
if nothing has happened? Am I right on this count?
Yes, I think you are: "nothing happened", in the sense of a full roll back.
Paolo.