Subject: Re: [boost] [Boost-users] [review][constrained_value] Review of Constrained Value Library begins today
From: David Abrahams (dave_at_[hidden])
Date: 2008-12-20 20:04:50
Mika Heiskanen wrote:
> I am not against having invariants checked only in debug mode, if the user
> so chooses. I am however against it being the default mode. I believe the
> most sensible default would be to throw an exception both in debug and
> release modes, since I believe this to be the most common use case.
Exceptions should almost never be used in response to broken invariants.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk