This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
RE: [libstdc++ PATCH] libstdc++ debug mode (fourth try)
- From: Pétur Runólfsson <peturr02 at ru dot is>
- To: "Doug Gregor" <dgregor at apple dot com>
- Cc: <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 6 Aug 2003 19:57:00 -0000
- Subject: RE: [libstdc++ PATCH] libstdc++ debug mode (fourth try)
Doug Gregor wrote:
> But in all cases you are relying upon behavior that the C++ standard
> does not guarantee, so your code may not be portable to other
> implementations of the standard library.
Fair enough; it's mostly the wording that bothers me - it seems to
imply that implementation-defined and unspecified behaviour is
a subset of undefined behaviour.
>> Also, I don't see any place where the debug mode warns about
>> implementation-defined or unspecified behaviour (but I may be missing
>> something).
>
> There aren't many places where this occurs, but vector capacity is one
> of them
OK, thanks
Petur