This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] libstdc++/9582
On Tue, Feb 18, 2003 at 09:35:27PM +0100, Paolo Carlini wrote:
> >Should __debug_alloc<> (which contains the same ODR violation) be
> >documented and changed to unconditionally abort() when a size mismatch
> >is detected? This way we can remove the <cassert> inclusion entirely.
> >
> I agree completely! Do you want me to prepare a patch?
So do I, and yes please, respectively. We might even consider printing
out some diagnostics before aborting -- it's debug_alloc, after all, we
don't care if it's slow or brings in extra code. But that's probably a
project for another day.
Phil
--
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra, 1930-2002