From ba3e7daa3fb2a698acb39b5b2b2c743572b49619 Mon Sep 17 00:00:00 2001 From: Efi Fogel Date: Sun, 24 May 2009 14:14:05 +0000 Subject: [PATCH] replaced a call to the constructor of a functor (Less_xy_2) with the generic function that returns the functor (less_xy_2_object() --- Polygon/include/CGAL/Polygon_2/Polygon_2_simplicity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polygon/include/CGAL/Polygon_2/Polygon_2_simplicity.h b/Polygon/include/CGAL/Polygon_2/Polygon_2_simplicity.h index 417195e68dd..a7567e5a69f 100644 --- a/Polygon/include/CGAL/Polygon_2/Polygon_2_simplicity.h +++ b/Polygon/include/CGAL/Polygon_2/Polygon_2_simplicity.h @@ -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 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::iterator succ(points.begin()) , it(succ++);