This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/21772] exception safety testing allocator
- From: "dave at boost-consulting dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2007 16:16:25 -0000
- Subject: [Bug libstdc++/21772] exception safety testing allocator
- References: <bug-21772-365@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from dave at boost-consulting dot com 2007-05-21 17:16 -------
Just "adding a throwing allocator" (especially one that throws
randomly like this one) will not test the library guarantees anywhere
nearly as effectively as the STLPort tests do. The technique is
outlined in http://www.boost.org/more/generic_exception_safety.html
Use this technique. In fact, if you can, use my code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21772