Commit e85aa962 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Joseph Mirabel
Browse files

In continuous validation, replace assert by exception.

parent 135edcb3
......@@ -102,7 +102,9 @@ namespace hpp {
IntervalValidation (const IntervalValidation& other) :
tolerance_(other.tolerance_), refine_(true)
{
assert (tolerance_ > 0);
if (tolerance_ < 0) {
throw std::runtime_error ("tolerance should be non-negative.");
}
}
private:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment