This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] libstdc++/9582
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 18 Feb 2003 21:35:27 +0100
- Subject: Re: [v3] libstdc++/9582
- References: <200302182033.h1IKX9wp021279@latour.rsch.comm.mot.com>
Loren James Rittle wrote:
Thanks Paolo, that was my comment and my particular assert().
Ouch! ;-)
The PR
raised an interesting QoI point: "I think that the contents of
standard headers (other than cassert) should not depend on the macro
NDEBUG, and cassert should not be included by other standard headers."
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?
Paolo.