diff --git a/libs/math/curve.h b/libs/math/curve.h index 6d76a90e..8d2d7cbc 100644 --- a/libs/math/curve.h +++ b/libs/math/curve.h @@ -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 }