Boost logo

Boost :

Subject: Re: [boost] [review][constrained_value] ReviewofConstrainedValueLibrary begins today
From: Robert Kawulak (robert.kawulak_at_[hidden])
Date: 2008-12-07 19:01:09


> From: Chris
> Quick question, if I made a NullErrorPolicy, and had compiler
> optimization on. Shouldn't the compiler remove all bounded checks?
> (empty) There would be no need for me to worry about optimization and
> slowness.
>
> This would be probably be the proper way rather than myint types;
>
> #ifdef MYDEBUG
> typedef NullErrorPolicy Policy;
> #else
> typedef throw_exception
> <http://student.agh.edu.pl/%7Ekawulak/constrained_value/refere
> nce/structboost_1_1constrained__value_1_1throw__exception.html
> ><my_exception>
> Policy;
> #endif

And why not simply as described in http://tinyurl.com/6bda78 ?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk