mirror of https://github.com/CGAL/cgal
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:
parent
5543eb4dad
commit
ba3e7daa3f
|
|
@ -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++);
|
||||
|
|
|
|||
Loading…
Reference in New Issue