Remove dependency on CGAL/functional -> replace Unary_function

and Binary_function by std:: counterparts.
This commit is contained in:
Michael Hoffmann 2008-07-23 15:18:27 +00:00
parent 9dbb04cdea
commit e57386244b
3 changed files with 14 additions and 10 deletions

View File

@ -235,7 +235,7 @@ public:
typedef Sqrt_extension_1<NT> Real_embeddable;
class Abs
: public Unary_function< Real_embeddable, Real_embeddable >{
: public std::unary_function< Real_embeddable, Real_embeddable >{
public:
Real_embeddable operator()(const Real_embeddable& x) const {
return (x>=0)?x:-x;
@ -243,7 +243,7 @@ public:
};
class Sign
: public Unary_function< Real_embeddable, CGAL::Sign >{
: public std::unary_function< Real_embeddable, CGAL::Sign >{
public:
CGAL::Sign operator()(const Real_embeddable& x) const {
return x.sign();
@ -251,7 +251,7 @@ public:
};
class Compare
: public Binary_function< Real_embeddable,
: public std::binary_function< Real_embeddable,
Real_embeddable,
CGAL::Comparison_result >{
public:
@ -269,7 +269,7 @@ public:
};
class To_double
: public Unary_function< Real_embeddable, double >{
: public std::unary_function< Real_embeddable, double >{
public:
double operator()(const Real_embeddable& x) const {
return x.to_double();
@ -277,7 +277,7 @@ public:
};
class To_interval
: public Unary_function< Real_embeddable, std::pair< double, double > >{
: public std::unary_function< Real_embeddable, std::pair< double, double > >{
public:
std::pair<double,double> operator()(const Real_embeddable& x) const {
return x.to_interval();

View File

@ -259,7 +259,7 @@ public:
typedef Sqrt_extension_2<NT> Real_embeddable;
class Abs
: public Unary_function< Real_embeddable, Real_embeddable >{
: public std::unary_function< Real_embeddable, Real_embeddable >{
public:
Real_embeddable operator()(const Real_embeddable& x) const {
return (x>=0)?x:-x;
@ -267,7 +267,7 @@ public:
};
class Sign
: public Unary_function< Real_embeddable, CGAL::Sign >{
: public std::unary_function< Real_embeddable, CGAL::Sign >{
public:
CGAL::Sign operator()(const Real_embeddable& x) const {
return x.sign();
@ -275,7 +275,7 @@ public:
};
class Compare
: public Binary_function< Real_embeddable,
: public std::binary_function< Real_embeddable,
Real_embeddable,
CGAL::Comparison_result >{
public:
@ -289,7 +289,7 @@ public:
};
class To_double
: public Unary_function< Real_embeddable, double >{
: public std::unary_function< Real_embeddable, double >{
public:
double operator()(const Real_embeddable& x) const {
return x.to_double();
@ -297,7 +297,7 @@ public:
};
class To_interval
: public Unary_function< Real_embeddable, std::pair< double, double > >{
: public std::unary_function< Real_embeddable, std::pair< double, double > >{
public:
std::pair<double,double> operator()(const Real_embeddable& x) const {
return x.to_interval();

View File

@ -1,3 +1,7 @@
23 July 2008 Michael Hoffmann
- Remove dependency on CGAL/functional -> replace Unary_function
and Binary_function by std:: counterparts.
25 August 2006: Menelaos Karavelas
- more name changes for variables called "small"