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>,"Benjamin Kosnik" <bkoz at redhat dot com>
- Cc: <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 6 Aug 2003 13:58:36 -0000
- Subject: RE: [libstdc++ PATCH] libstdc++ debug mode (fourth try)
Hi,
Just a small nit about the documentation:
Index: docs/html/debug.html
[...]
! <p>libstdc++ includes many extensions to the C++ standard library. In
! some cases the extensions are obvious, such as the hashed
! associative containers, whereas other extensions give predictable
! results to behavior that would otherwise be undefined, such as
! throwing an exception when a <code>std::basic_string</code> is
! constructed from a NULL character pointer. This latter category also
! includes implementation-defined and unspecified semantics,
The last sentence seems somewhat misleading. Implementation-defined
behaviour (as defined in 1.3.5) is quite distinct from undefined
behaviour, and is (or should be) predictable (since it is required to be
documented). Unspecified behaviour is also different from undefined
behaviour, and is not an extension.
Also, I don't see any place where the debug mode warns about
implementation-defined or unspecified behaviour (but I may be missing
something).
Otherwise, great work!
Petur