From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-11-15 08:53:12
From: "Beman Dawes" <bdawes_at_[hidden]>
> At 10:25 AM 11/13/2001, Peter Dimov wrote:
> >To allow turning off all checks when the code has been tested and
> >performance is critical. If this is not necessary or desirable, you can
> >always leave BOOST_DEBUG defined.
> I'm with Darin. The default should always be as safe as possible, so that
> new/inexperienced/forgetful users don't get bitten. Thus the default
> should always be to error check.
I already responded to Darin in another message about this.
Making BOOST_ASSERT on by default doesn't automatically guarantee checks.
(It's like raising taxes.) It has to be used to be effective. 'On by
default' leads to _less_ use of BOOST_ASSERT, which in turn means that the
'missing checks' are 'always off.'
For example, smart_ptr.hpp's error checks are currently 'always off.'
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk