Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost] [review][constrained_value] Review of Constrained Value Library begins today
From: Mika Heiskanen (mika.heiskanen_at_[hidden])
Date: 2008-12-20 23:20:45


David Abrahams wrote:

> Exceptions should almost never be used in response to broken invariants.

Pardon my ignorance, but how come? The constraints I have to validate usually
concern broken user input via the command line or a query string. How should I
deal with them if not with exceptions? Or to be more precise, why should I not
use constrained types for validating user input if it saves me a lot of
if-statements in the long run?

--> Mika Heiskanen


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