Commit 65fd2439 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[polynomial] fix safe_check method : correctly throw the execptions

parent 82891d3c
......@@ -233,11 +233,11 @@ namespace curves
{
if(T_min_ > T_max_)
{
std::invalid_argument("Tmin should be inferior to Tmax");
throw std::invalid_argument("Tmin should be inferior to Tmax");
}
if(coefficients_.size() != int(degree_+1))
if(coefficients_.cols() != int(degree_+1))
{
std::runtime_error("Spline order and coefficients do not match");
throw std::runtime_error("Spline order and coefficients do not match");
}
}
}
......
Markdown is supported
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