From 542d69b351e279d953ae4b44f425d55b41398e57 Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Fri, 20 Jun 2008 08:47:12 +0000 Subject: [PATCH] Use boost::bind instead of CGAL::bind_1. --- Convex_hull_3/include/CGAL/convex_hull_3.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Convex_hull_3/include/CGAL/convex_hull_3.h b/Convex_hull_3/include/CGAL/convex_hull_3.h index 51fa4b33bd6..64d8a3e4aa5 100644 --- a/Convex_hull_3/include/CGAL/convex_hull_3.h +++ b/Convex_hull_3/include/CGAL/convex_hull_3.h @@ -27,13 +27,13 @@ #include #include #include -#include #include #include #include #include #include #include +#include #ifndef CGAL_CH_NO_POSTCONDITIONS #include @@ -205,7 +205,7 @@ farthest_outside_point(Facet_handle f_handle, std::list& outside_set, Outside_set_iterator farthest_it = std::max_element(outside_set.begin(), outside_set.end(), - bind_1(less_dist_to_plane, plane)); + boost::bind(less_dist_to_plane, plane, _1, _2)); return *farthest_it; } @@ -496,8 +496,8 @@ ch_quickhull_polyhedron_3(std::list& points, // plane. std::pair min_max; min_max = CGAL::min_max_element(points.begin(), points.end(), - bind_1(compare_dist, plane), - bind_1(compare_dist, plane)); + boost::bind(compare_dist, plane, _1, _2), + boost::bind(compare_dist, plane, _1, _2)); P3_iterator max_it; if (coplanar(*point1_it, *point2_it, *point3_it, *min_max.second)) { @@ -601,8 +601,8 @@ convex_hull_3(InputIterator first, InputIterator beyond, Less_dist less_dist = traits.less_distance_to_point_3_object(); P3_iterator_pair endpoints = min_max_element(points.begin(), points.end(), - bind_1(less_dist, *points.begin()), - bind_1(less_dist, *points.begin())); + boost::bind(less_dist, *points.begin(), _1, _2), + boost::bind(less_dist, *points.begin(), _1, _2)); typename Traits::Construct_segment_3 construct_segment = traits.construct_segment_3_object();