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
> <
> nce/structboost_1_1constrained__value_1_1throw__exception.html
> ><my_exception>
> Policy;
> #endif

And why not simply as described in ?

Boost list run by bdawes at, gregod at, cpdaniel at, john at