Update commented-out code to use functor equal_to_p.

This commit is contained in:
Marc Glisse 2017-05-02 22:35:19 +02:00
parent 49dc0855cd
commit f0de24f91f
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ public:
#if 0
// This code could have quadratic runtime.
if (!is_built()) {
std::vector<Point_d>::iterator pi = std::find(pts.begin(), pts.end(), p);
std::vector<Point_d>::iterator pi = std::find_if(pts.begin(), pts.end(), equal_to_p);
// Precondition: the point must be there.
CGAL_assertion (pi != pts.end());
pts.erase(pi);