Preventing/handling space leaks

Gabriel Dos Reis gdr at
Tue Dec 9 13:01:52 EST 2003

Fergus Henderson <fjh at> writes:

| Even the C++ standard library itself, which has been
| subject to review by the world's best C++ experts, suffers
| from exception safety problems.  A new exception safety
| problem with std::auto_ptr was discovered just last Friday!  See
| <>.
| Note that this class has already been the subject of extensive analysis
| of its exception safety, and indeed the only reason that auto_ptr
| was introduced in the first place was in an attempt to help guarantee
| exception safety!

I think it is fair to characterize auto_ptr as a curiously broken
class since its conception and design.

More information about the Haskell-Cafe mailing list