replaced a call to the constructor of a functor (Less_xy_2) with the generic function that returns the functor (less_xy_2_object()

This commit is contained in:
Efi Fogel 2009-05-24 14:14:05 +00:00
parent 5543eb4dad
commit ba3e7daa3f
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ bool is_simple_polygon(Iterator points_begin, Iterator points_end,
// A temporary fix as the sweep in some cases doesn't discover vertices with degree > 2
// Todo: fix the sweep code
std::vector<typename PolygonTraits::Point_2> points(points_begin,points_end);
std::sort(points.begin(), points.end(),typename PolygonTraits::Less_xy_2());
std::sort(points.begin(), points.end(), polygon_traits.less_xy_2_object());
typename std::vector<typename PolygonTraits::Point_2>::iterator
succ(points.begin()) , it(succ++);