From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-11-15 14:13:31
From: "Kevin S. Van Horn" <Kevin.VanHorn_at_[hidden]>
> Peter Dimov write:
> > Throwing an exception from BOOST_ASSERT is undesired behavior. I don't
> > want it as a standard option.
> Except that, in the case I pointed out, it sometimes is desired behavior
> and the Right Thing(tm) to do. One aborts an entire subcomputation /
> transaction rather than aborting the entire program. I expect this to be
> the norm, not the exception (pardon the pun), for enterprise information
I don't agree. Globally turning asserts into throws at the flip of a switch
is never the Right Thing(tm) to do. To handle this transition, the code
needs to be designed with it in mind. Otherwise the approach is, at best, a
hack: throw an exception and hope for the best.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk