[libstdc++ PATCH] libstdc++ debug mode (fourth try)

Pétur Runólfsson peturr02@ru.is
Wed Aug 6 19:57:00 GMT 2003


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



More information about the Libstdc++ mailing list