Commit 96722777 authored by stevet's avatar stevet
Browse files

more == replacements for numeric types

parent d53ed18c
......@@ -46,9 +46,9 @@ struct Bern {
}
virtual bool operator== (const Bern& other) const{
return m_minus_i == other.m_minus_i
&& i_ == other.i_
&& bin_m_i_ == other.bin_m_i_;
return curves::isApprox<Numeric>(m_minus_i, other.m_minus_i)
&& curves::isApprox<Numeric>(i_, other.i_)
&& curves::isApprox<Numeric>(bin_m_i_, other.bin_m_i_);
}
virtual bool operator!=(const Bern& other) const {
......
......@@ -153,7 +153,7 @@ struct bezier_curve : public curve_abc<Time, Numeric, Safe, Point> {
&& dim_ == other.dim()
&& degree_ == other.degree()
&& size_ == other.size_
&& mult_T_ == other.mult_T_
&& curves::isApprox<Numeric>(mult_T_, other.mult_T_)
&& bernstein_ == other.bernstein_;
if(!equal)
return false;
......
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