mirror of https://github.com/CGAL/cgal
Update commented-out code to use functor equal_to_p.
This commit is contained in:
parent
49dc0855cd
commit
f0de24f91f
|
|
@ -383,7 +383,7 @@ public:
|
||||||
#if 0
|
#if 0
|
||||||
// This code could have quadratic runtime.
|
// This code could have quadratic runtime.
|
||||||
if (!is_built()) {
|
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.
|
// Precondition: the point must be there.
|
||||||
CGAL_assertion (pi != pts.end());
|
CGAL_assertion (pi != pts.end());
|
||||||
pts.erase(pi);
|
pts.erase(pi);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue