[Bug libstdc++/21772] exception safety testing allocator

dave at boost-consulting dot com gcc-bugzilla@gcc.gnu.org
Mon May 21 16:16:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list