
8 Dec
2008
8 Dec
'08
12:01 a.m.
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 ?