|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-04-14 11:23:15
From: "David Abrahams" <abrahams_at_[hidden]>
> From: "Peter Dimov" <pdimov_at_[hidden]>
>
> > If you want to avoid taking responsibility for the decision, you can
> always
> > label the check as 'costly.'
>
> OK. But should we use the "free" check in libraries? In that case, we're
> deciding for the user that (s)he can afford the overhead.
No, we don't decide for the user. We provide a reasonable estimate - this
check is likely to cost much more than that check. To address your concerns,
BOOST_NO_CHECKS (or whatever its name turns out to be) would still turn off
all checks.
Unfortunately this has the downside to add one more build.
-- 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