- Remove non-const operator[] of Polynomial.

This commit is contained in:
Sylvain Pion 2003-08-27 08:57:12 +00:00
parent 7a7057a8d5
commit ce5441d3d3
2 changed files with 3 additions and 12 deletions

View File

@ -1,5 +1,8 @@
Nef_2 Package: Release changes
----------------------------------------------------------------------
1.42 (27. August 2003)
- Remove non-const operator[] of Polynomial.
1.41 (6. August 2003) [af]
- Changed to_double(Polynomial)

View File

@ -340,10 +340,6 @@ template <class pNT> class Polynomial :
return ptr()->coeff[i]; }
//{\Marrop the coefficient $a_i$ of the polynomial.}
const NT& operator[](unsigned int i)
{ CGAL_assertion( i<(ptr()->coeff.size()) );
return ptr()->coeff[i]; }
NT operator()(unsigned int i) const
{
if(i<(ptr()->coeff.size()))
@ -683,10 +679,6 @@ CGAL_TEMPLATE_NULL class Polynomial<int> :
return ptr()->coeff[i]; }
/*{\Xarrop the coefficient $a_i$ of the polynomial.}*/
const int& operator[](unsigned int i)
{ CGAL_assertion( i<(ptr()->coeff.size()) );
return ptr()->coeff[i]; }
int eval_at(const int& r) const
/*{\Xop evaluates the polynomial at |r|.}*/
{ CGAL_assertion( degree()>=0 );
@ -994,10 +986,6 @@ determines the sign for the limit process $x \rightarrow \infty$.
return ptr()->coeff[i]; }
/*{\Xarrop the coefficient $a_i$ of the polynomial.}*/
const double& operator[](unsigned int i)
{ CGAL_assertion( i<(ptr()->coeff.size()) );
return ptr()->coeff[i]; }
double eval_at(const double& r) const
/*{\Xop evaluates the polynomial at |r|.}*/
{ CGAL_assertion( degree()>=0 );