
-------- Original-Nachricht --------
Datum: Thu, 04 Dec 2008 17:37:46 +0100 Von: Mathias Gaunard
An: boost-users@lists.boost.org CC: boost@lists.boost.org Betreff: Re: [Boost-users] [review][constrained_value] Review of Constrained Value Library begins today
Mika Heiskanen wrote:
If the value must be checked beforehand, why bother using a constrained type at all?
Because it performs checking in debug mode to make sure the invariant is indeed true.
Not always is this enough. Especially when you get input from datasources (DB, Sensors, Cameras) you can not always be sure, it fits your needs. I think this all should be handled with an error policy, as there a lot of usecases, which differ from their needs for errorchecking and handling widely. regards Jens Weller
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger