Use Boost.Bind instead of CGAL/functional.h .

This commit is contained in:
Sylvain Pion 2008-07-23 07:17:34 +00:00
parent 8c78a202b8
commit 02c88564aa
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
#include <CGAL/vector.h>
#include <CGAL/Partition_2/Rotation_tree_node_2.h>
#include <CGAL/functional.h>
#include <boost/bind.hpp>
namespace CGAL {
@ -57,7 +57,7 @@ public:
for (ForwardIterator it = first; it != beyond; it++)
push_back(*it);
std::sort(this->begin(), this->end(), swap_1(Traits().less_xy_2_object()));
std::sort(this->begin(), this->end(), bind(Traits().less_xy_2_object(), _2, _1));
std::unique(this->begin(), this->end());
// front() is the point with the largest x coordinate