fix clang build error

This commit is contained in:
Garux 2021-06-22 19:17:58 +03:00
parent 5b33fae202
commit 7796044913

View File

@ -42,7 +42,7 @@ double BernsteinPolynomial( double t ){
else if constexpr( I == 1 && Degree == 3 ) return 3 * ( 1 - t ) * ( 1 - t ) * t;
else if constexpr( I == 2 && Degree == 3 ) return 3 * ( 1 - t ) * t * t;
else if constexpr( I == 3 && Degree == 3 ) return t * t * t;
else 0 = 1; // general case not implemented
else static_assert( I != I, "general case not implemented" ); // assert on something false
}