fix clang build error
This commit is contained in:
parent
5b33fae202
commit
7796044913
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user