
11 Oct
2011
11 Oct
'11
6:30 p.m.
On Tue, Oct 11, 2011 at 1:48 AM, Peter Myerscough-Jackopson <peter.myerscough-jackopson@macltd.com> wrote:
-----Original Message----- BOOST_THROW_EXCEPTION can be set to call a user defined function boost_throw_exception, I am unaware of BOOST_THROW_EXCEPTION calling exit().
BOOST_THROW_EXCEPTION should not be messed with, it is not designed to be a customization point. By design, (Boost) libraries use BOOST_THROW_EXCEPTION to enforce postconditions. The only way to avoid throwing an exception in such cases is to #define BOOST_NO_EXCEPTIONS and provide a user-defined boost::throw_exception, which is not allowed to return. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode