From 5258eec9d5b85d11de62b924b648c81d8ecec039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Fri, 12 May 2017 09:20:35 +0200 Subject: [PATCH] fix conversion warning --- .../test/Convex_hull_2/ch2_point_with_info.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Convex_hull_2/test/Convex_hull_2/ch2_point_with_info.cpp b/Convex_hull_2/test/Convex_hull_2/ch2_point_with_info.cpp index 37b0e74b3cf..116e91f941b 100644 --- a/Convex_hull_2/test/Convex_hull_2/ch2_point_with_info.cpp +++ b/Convex_hull_2/test/Convex_hull_2/ch2_point_with_info.cpp @@ -48,7 +48,7 @@ struct CH_traits_for_point_ids : points(points) {} - typedef unsigned Point_2; + typedef std::size_t Point_2; typedef CGAL::Convex_hull_traits_2 Base; typedef Forward_bool_functor Less_xy_2; typedef Forward_bool_functor Less_yx_2; @@ -111,18 +111,18 @@ struct CH_traits_for_point_ids int main() { std::vector input_points; - std::vector result; + std::vector result; input_points.push_back( Point_2(0,0) ); input_points.push_back( Point_2(0,1) ); input_points.push_back( Point_2(1,0) ); input_points.push_back( Point_2(0.25,0.25) ); - CGAL::convex_hull_2( boost::counting_iterator(0), - boost::counting_iterator(input_points.size()), + CGAL::convex_hull_2( boost::counting_iterator(0), + boost::counting_iterator(input_points.size()), std::back_inserter(result), CH_traits_for_point_ids(input_points) ); - BOOST_FOREACH(unsigned i, result) + BOOST_FOREACH(std::size_t i, result) { std::cout << input_points[i] << " - " << i << "\n"; }