Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost] [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-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net