if the else -> ()?:

This commit is contained in:
Andreas Fabri 2016-01-27 11:07:26 +01:00
parent be18872e2d
commit fa5bda2fbb
2 changed files with 3 additions and 2 deletions

View File

@ -143,6 +143,7 @@ public:
template <class Forward_iterator>
result_type operator()(Forward_iterator start, Forward_iterator end) const
{
CGAL_USE(end);
CGAL_assertion(start!=end);
int d = start->dimension();
Matrix M(d);

View File

@ -692,7 +692,7 @@ class Polynomial<int> :
Polynomial<int> abs() const
/*{\Xop returns |-\Mvar| if |\Mvar.sign()==NEGATIVE| and |\Mvar|
otherwise.}*/
{ if ( sign()==CGAL::NEGATIVE ) return -*this; return *this; }
{ return ( sign()==CGAL::NEGATIVE ) ? - *this : *this; }
int content() const
/*{\Xop returns the content of |\Mvar| (the gcd of its coefficients).
@ -993,7 +993,7 @@ determines the sign for the limit process $x \rightarrow \infty$.
Polynomial<double> abs() const
/*{\Xop returns |-\Mvar| if |\Mvar.sign()==NEGATIVE| and |\Mvar|
otherwise.}*/
{ if ( sign()==CGAL::NEGATIVE ) return -*this; return *this; }
{ return ( sign()==CGAL::NEGATIVE ) ? - *this : *this; }
double content() const