diff --git a/eo/src/utils/eoRealBounds.h b/eo/src/utils/eoRealBounds.h index 47c061005..a41646d47 100644 --- a/eo/src/utils/eoRealBounds.h +++ b/eo/src/utils/eoRealBounds.h @@ -27,6 +27,7 @@ #ifndef _eoRealBounds_h #define _eoRealBounds_h +#include #include // std::exceptions! #include @@ -226,10 +227,14 @@ public : */ eoRealInterval(double _min=0, double _max=1) : repMinimum(_min), repMaximum(_max), repRange(_max-_min) - { - if (repRange<=0) - throw std::logic_error("Void range in eoRealBounds"); - } + { + assert( repRange >= 0 ); +#ifndef NDEBUG + if( repRange == 0 ) { + eo::log << eo::warnings << "Null range in eoRealBounds (min=" << _min << ", max=" << _max << ")" << std::endl; + } +#endif + } // accessors virtual double minimum() const { return repMinimum; }