diff --git a/GraphicsView/demo/Apollonius_graph_2/Apollonius_graph_2.cpp b/GraphicsView/demo/Apollonius_graph_2/Apollonius_graph_2.cpp index c41b84b8682..c97a51fe090 100644 --- a/GraphicsView/demo/Apollonius_graph_2/Apollonius_graph_2.cpp +++ b/GraphicsView/demo/Apollonius_graph_2/Apollonius_graph_2.cpp @@ -244,7 +244,7 @@ MainWindow::open(QString fileName) #if BOOST_VERSION >= 105600 && (! defined(BOOST_GCC) || BOOST_GCC >= 40500) std::vector point_3_s; CGAL::read_multi_point_WKT(ifs, point_3_s); - BOOST_FOREACH(const K::Point_3& point_3, point_3_s) + for(const K::Point_3& point_3 : point_3_s) { points.push_back(Apollonius_site_2(K::Point_2(point_3.x(), point_3.y()), point_3.z())); } diff --git a/GraphicsView/demo/Bounding_volumes/Bounding_volumes.cpp b/GraphicsView/demo/Bounding_volumes/Bounding_volumes.cpp index 45e25999ed1..9cd70810ec0 100644 --- a/GraphicsView/demo/Bounding_volumes/Bounding_volumes.cpp +++ b/GraphicsView/demo/Bounding_volumes/Bounding_volumes.cpp @@ -499,7 +499,7 @@ MainWindow::open(QString fileName) { #if BOOST_VERSION >= 105600 && (! defined(BOOST_GCC) || BOOST_GCC >= 40500) CGAL::read_multi_point_WKT(ifs, points); - BOOST_FOREACH(K::Point_2 p, points) + for(K::Point_2 p : points) { mc.insert(p); me.insert(p); diff --git a/GraphicsView/demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp b/GraphicsView/demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp index 7399174b30a..4694a2a496c 100644 --- a/GraphicsView/demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp +++ b/GraphicsView/demo/Segment_Delaunay_graph_2/Segment_voronoi_2.cpp @@ -358,7 +358,7 @@ MainWindow::loadWKTConstraints(QString do{ std::vector polygons; CGAL::read_multi_polygon_WKT(ifs, polygons); - BOOST_FOREACH(const Polygon& poly, polygons) + for(const Polygon& poly : polygons) { if(poly.outer_boundary().is_empty()) continue; @@ -388,7 +388,7 @@ MainWindow::loadWKTConstraints(QString do{ std::vector linestrings; CGAL::read_multi_linestring_WKT(ifs, linestrings); - BOOST_FOREACH(const LineString& ls, linestrings) + for(const LineString& ls : linestrings) { bool first_pass=true; LineString::const_iterator it = ls.begin(); diff --git a/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/Segment_voronoi_linf_2.cpp b/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/Segment_voronoi_linf_2.cpp index ee5ee603726..4b4c74514ff 100644 --- a/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/Segment_voronoi_linf_2.cpp +++ b/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/Segment_voronoi_linf_2.cpp @@ -401,7 +401,7 @@ MainWindow::loadWKT(QString { std::vector mpts; CGAL::read_multi_point_WKT(ifs, mpts); - BOOST_FOREACH(const K::Point_2& p, mpts) + for(const K::Point_2& p : mpts) svd.insert(p); }while(ifs.good() && !ifs.eof()); //Lines @@ -412,7 +412,7 @@ MainWindow::loadWKT(QString typedef std::vector LineString; std::vector mls; CGAL::read_multi_linestring_WKT(ifs, mls); - BOOST_FOREACH(const LineString& ls, mls) + for(const LineString& ls : mls) { if(ls.empty()) continue; @@ -450,7 +450,7 @@ MainWindow::loadWKT(QString typedef CGAL::Polygon_with_holes_2 Polygon; std::vector mps; CGAL::read_multi_polygon_WKT(ifs, mps); - BOOST_FOREACH(const Polygon& poly, mps) + for(const Polygon& poly : mps) { if(poly.outer_boundary().is_empty()) continue; diff --git a/GraphicsView/demo/Snap_rounding_2/Snap_rounding_2.cpp b/GraphicsView/demo/Snap_rounding_2/Snap_rounding_2.cpp index 4be765f84c8..cd337a2b470 100644 --- a/GraphicsView/demo/Snap_rounding_2/Snap_rounding_2.cpp +++ b/GraphicsView/demo/Snap_rounding_2/Snap_rounding_2.cpp @@ -273,7 +273,7 @@ MainWindow::open(QString fileName) #if BOOST_VERSION >= 105600 && (! defined(BOOST_GCC) || BOOST_GCC >= 40500) std::vector > mls; CGAL::read_multi_linestring_WKT(ifs, mls); - BOOST_FOREACH(const std::vector& ls, mls) + for(const std::vector& ls : mls) { if(ls.size() > 2) continue; @@ -315,7 +315,7 @@ MainWindow::on_actionSaveSegments_triggered() { #if BOOST_VERSION >= 105600 && (! defined(BOOST_GCC) || BOOST_GCC >= 40500) std::vector >mls; - BOOST_FOREACH(const Segment_2& seg, input) + for(const Segment_2& seg : input) { std::vector ls(2); ls[0] = seg.source(); diff --git a/GraphicsView/demo/Triangulation_2/Constrained_Delaunay_triangulation_2.cpp b/GraphicsView/demo/Triangulation_2/Constrained_Delaunay_triangulation_2.cpp index 008e227d28c..697b6ca1e00 100644 --- a/GraphicsView/demo/Triangulation_2/Constrained_Delaunay_triangulation_2.cpp +++ b/GraphicsView/demo/Triangulation_2/Constrained_Delaunay_triangulation_2.cpp @@ -572,12 +572,12 @@ MainWindow::loadWKT(QString typedef CGAL::Point_2 Point; std::vector mps; CGAL::read_multi_polygon_WKT(ifs, mps); - BOOST_FOREACH(const Polygon& p, mps) + for(const Polygon& p : mps) { if(p.outer_boundary().is_empty()) continue; - BOOST_FOREACH(Point point, p.outer_boundary().container()) + for(Point point : p.outer_boundary().container()) cdt.insert(point); for(Polygon::General_polygon_2::Edge_const_iterator e_it=p.outer_boundary().edges_begin(); e_it != p.outer_boundary().edges_end(); ++e_it) @@ -586,7 +586,7 @@ MainWindow::loadWKT(QString for(Polygon::Hole_const_iterator h_it = p.holes_begin(); h_it != p.holes_end(); ++h_it) { - BOOST_FOREACH(Point point, h_it->container()) + for(Point point : h_it->container()) cdt.insert(point); for(Polygon::General_polygon_2::Edge_const_iterator e_it=h_it->edges_begin(); e_it != h_it->edges_end(); ++e_it) @@ -604,7 +604,7 @@ MainWindow::loadWKT(QString typedef std::vector LineString; std::vector mls; CGAL::read_multi_linestring_WKT(ifs, mls); - BOOST_FOREACH(const LineString& ls, mls) + for(const LineString& ls : mls) { if(ls.empty()) continue; @@ -642,7 +642,7 @@ MainWindow::loadWKT(QString { std::vector mpts; CGAL::read_multi_point_WKT(ifs, mpts); - BOOST_FOREACH(const K::Point_2& p, mpts) + for(const K::Point_2& p : mpts) { cdt.insert(p); } diff --git a/GraphicsView/demo/Triangulation_2/Regular_triangulation_2.cpp b/GraphicsView/demo/Triangulation_2/Regular_triangulation_2.cpp index ca1023d4b1d..002050f4952 100644 --- a/GraphicsView/demo/Triangulation_2/Regular_triangulation_2.cpp +++ b/GraphicsView/demo/Triangulation_2/Regular_triangulation_2.cpp @@ -260,7 +260,7 @@ MainWindow::on_actionLoadPoints_triggered() #if BOOST_VERSION >= 105600 && (! defined(BOOST_GCC) || BOOST_GCC >= 40500) std::vector points_3; CGAL::read_multi_point_WKT(ifs, points_3); - BOOST_FOREACH(const K::Point_3& p, points_3) + for(const K::Point_3& p : points_3) { points.push_back(Weighted_point_2(K::Point_2(p.x(), p.y()), p.z())); } diff --git a/Point_set_3/examples/Point_set_3/point_set_algo.cpp b/Point_set_3/examples/Point_set_3/point_set_algo.cpp index 80e42dcef6d..f87a4b3e4ef 100644 --- a/Point_set_3/examples/Point_set_3/point_set_algo.cpp +++ b/Point_set_3/examples/Point_set_3/point_set_algo.cpp @@ -70,7 +70,7 @@ int main (int, char**) parameters.normal_threshold = 0.9; ransac.detect(parameters); - BOOST_FOREACH(boost::shared_ptr shape, ransac.shapes()) + for(boost::shared_ptr shape : ransac.shapes()) if (Sphere* sphere = dynamic_cast(shape.get())) std::cerr << "Detected sphere of center " << sphere->center() // Center should be approx 0, 0, 0 << " and of radius " << sphere->radius() << std::endl; // Radius should be approx 1 diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Face_graph_output_builder.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Face_graph_output_builder.h index 3e585fe691c..d8256bf17d6 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Face_graph_output_builder.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Face_graph_output_builder.h @@ -1259,7 +1259,7 @@ public: // non-manifold vertices would not be duplicated in interior // vertices of patche) // special code to handle non-manifold vertices on the boundary - BOOST_FOREACH (vertex_descriptor vd, vertices(tm1)) + for (vertex_descriptor vd : vertices(tm1)) { boost::optional op_h = is_border(vd, tm1); if (op_h == boost::none) continue; @@ -1629,12 +1629,12 @@ public: } // Code dedicated to the handling of non-manifold vertices - BOOST_FOREACH(vertex_descriptor vd, border_nm_vertices) + for(vertex_descriptor vd : border_nm_vertices) { // first check if at least one incident patch will be kept boost::unordered_set id_p_rm; bool all_removed=true; - BOOST_FOREACH(halfedge_descriptor h, halfedges_around_target(vd, tm1)) + for(halfedge_descriptor h : halfedges_around_target(vd, tm1)) { face_descriptor f = face(h, tm1); if ( f != GT::null_face() ) @@ -1649,7 +1649,7 @@ public: if (all_removed) id_p_rm.erase(id_p_rm.begin()); // remove the vertex from the interior vertices of patches to be removed - BOOST_FOREACH(std::size_t pid, id_p_rm) + for(std::size_t pid : id_p_rm) patches_of_tm1[pid].interior_vertices.erase(vd); // we now need to update the next/prev relationship induced by the future removal of patches @@ -1703,7 +1703,7 @@ public: while(true); if (hit == end) break; } - BOOST_FOREACH ( const Hedge_pair& p, hedges_to_link) + for(const Hedge_pair& p : hedges_to_link) set_next(p.first, p.second, tm1); } } diff --git a/Polygon_mesh_processing/test/Polygon_mesh_processing/polygon_mesh_slicer_test.cpp b/Polygon_mesh_processing/test/Polygon_mesh_processing/polygon_mesh_slicer_test.cpp index 223a1c58aa0..526bea44ee6 100644 --- a/Polygon_mesh_processing/test/Polygon_mesh_processing/polygon_mesh_slicer_test.cpp +++ b/Polygon_mesh_processing/test/Polygon_mesh_processing/polygon_mesh_slicer_test.cpp @@ -28,7 +28,7 @@ bool is_ccw(int xi, int yi, CGAL::Polygon_2 polygon; if(polyline.front() == polyline.back()) { - BOOST_FOREACH(const typename K::Point_3& p, polyline) + for(const typename K::Point_3& p : polyline) { polygon.push_back(typename K::Point_2(p[xi], p[yi])); } diff --git a/Polygon_mesh_processing/test/Polygon_mesh_processing/test_pmp_manifoldness.cpp b/Polygon_mesh_processing/test/Polygon_mesh_processing/test_pmp_manifoldness.cpp index 788a22e428a..c4b8a98d2fa 100644 --- a/Polygon_mesh_processing/test/Polygon_mesh_processing/test_pmp_manifoldness.cpp +++ b/Polygon_mesh_processing/test/Polygon_mesh_processing/test_pmp_manifoldness.cpp @@ -6,8 +6,6 @@ #include #include -#include - #include #include #include diff --git a/Polyhedron/demo/Polyhedron/Plugins/AABB_tree/Cut_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/AABB_tree/Cut_plugin.cpp index ca66b7ce18a..d7a3863ce3a 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/AABB_tree/Cut_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/AABB_tree/Cut_plugin.cpp @@ -258,7 +258,7 @@ public: is_tree_empty = tree.empty(); nb_lines = positions_lines.size(); setEdgeContainer(0, new Ec(Vi::PROGRAM_NO_SELECTION, false)); - BOOST_FOREACH(auto v, CGAL::QGLViewer::QGLViewerPool()) + for(auto v : CGAL::QGLViewer::QGLViewerPool()) { CGAL::Three::Viewer_interface* viewer = static_cast(v); initGL(viewer); @@ -488,7 +488,7 @@ public: setEdgeContainer(0, new Ec(Vi::PROGRAM_NO_SELECTION, false)); texture = new ::Texture(m_grid_size,m_grid_size); getTriangleContainer(0)->setTextureSize(QSize(m_grid_size, m_grid_size)); - BOOST_FOREACH(auto v, CGAL::QGLViewer::QGLViewerPool()) + for(auto v : CGAL::QGLViewer::QGLViewerPool()) { CGAL::Three::Viewer_interface* viewer = static_cast(v); initGL(viewer); diff --git a/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp index b9766dec3ff..98851af36e8 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp @@ -64,7 +64,7 @@ public: bbox.xmax(),bbox.ymax(),bbox.zmax())); nb_points = points.size(); - BOOST_FOREACH(auto v, CGAL::QGLViewer::QGLViewerPool()) + for(auto v : CGAL::QGLViewer::QGLViewerPool()) { CGAL::Three::Viewer_interface* viewer = static_cast(v); initGL(viewer); diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Alpha_shape_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Alpha_shape_plugin.cpp index bda125617a5..86d819b5b21 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Alpha_shape_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Alpha_shape_plugin.cpp @@ -305,7 +305,7 @@ Scene_alpha_shape_item::Scene_alpha_shape_item(Scene_points_with_normal_item *po vertices.push_back(it->point().y()+offset.y); vertices.push_back(it->point().z()+offset.z); } - BOOST_FOREACH(auto v, CGAL::QGLViewer::QGLViewerPool()) + for(auto v : CGAL::QGLViewer::QGLViewerPool()) { CGAL::Three::Viewer_interface* viewer = static_cast(v); if(!isInit(viewer)) diff --git a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp index a1343e70134..9ad4cfa9dc2 100644 --- a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.cpp @@ -532,7 +532,7 @@ void Scene_c3t3_item::common_constructor(bool is_surface) setEdgeContainer(Grid_edges, new Ec(Vi::PROGRAM_NO_SELECTION, false)); setEdgeContainer(C3t3_edges, new Ec(Vi::PROGRAM_C3T3_EDGES, false)); setPointContainer(C3t3_points, new Pc(Vi::PROGRAM_C3T3_EDGES, false)); - BOOST_FOREACH(auto v, CGAL::QGLViewer::QGLViewerPool()) + for(auto v : CGAL::QGLViewer::QGLViewerPool()) { v->installEventFilter(this); } @@ -611,7 +611,7 @@ void Scene_c3t3_item::updateCutPlane() if(!d) return; if(d->need_changed) { - BOOST_FOREACH(auto v, CGAL::QGLViewer::QGLViewerPool()) + for(auto v : CGAL::QGLViewer::QGLViewerPool()) { CGAL::Three::Viewer_interface* viewer = static_cast(v); d->are_intersection_buffers_filled[viewer] = false; @@ -1581,7 +1581,7 @@ Scene_c3t3_item::setColor(QColor c) d->compute_color_map(c); invalidateOpenGLBuffers(); d->invalidate_stats(); - BOOST_FOREACH(auto v, CGAL::QGLViewer::QGLViewerPool()) + for(auto v : CGAL::QGLViewer::QGLViewerPool()) { CGAL::Three::Viewer_interface* viewer = static_cast(v); d->are_intersection_buffers_filled[viewer] = false; @@ -1636,7 +1636,7 @@ void Scene_c3t3_item::show_intersection(bool b) d->intersection->setRenderingMode(renderingMode()); connect(d->intersection, SIGNAL(destroyed()), this, SLOT(reset_intersection_item())); - BOOST_FOREACH(auto v, CGAL::QGLViewer::QGLViewerPool()) + for(auto v : CGAL::QGLViewer::QGLViewerPool()) { CGAL::Three::Viewer_interface* viewer = static_cast(v); d->are_intersection_buffers_filled[viewer] = false; diff --git a/Polyhedron/demo/Polyhedron/Scene_surface_mesh_item.cpp b/Polyhedron/demo/Polyhedron/Scene_surface_mesh_item.cpp index 09dd204eff6..a25bd48cadf 100644 --- a/Polyhedron/demo/Polyhedron/Scene_surface_mesh_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_surface_mesh_item.cpp @@ -1295,7 +1295,7 @@ void Scene_surface_mesh_item::invalidate(Gl_data_names name) getEdgeContainer(0)->reset_vbos(name); getPointContainer(0)->reset_vbos(name); bool has_been_init = false; - BOOST_FOREACH(CGAL::QGLViewer* v, CGAL::QGLViewer::QGLViewerPool()) + for(CGAL::QGLViewer* v : CGAL::QGLViewer::QGLViewerPool()) { CGAL::Three::Viewer_interface* viewer = static_cast(v); if(!isInit(viewer)) diff --git a/Polyhedron/demo/Polyhedron/Scene_textured_surface_mesh_item.cpp b/Polyhedron/demo/Polyhedron/Scene_textured_surface_mesh_item.cpp index 816d37d3e60..8d9f55a455f 100644 --- a/Polyhedron/demo/Polyhedron/Scene_textured_surface_mesh_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_textured_surface_mesh_item.cpp @@ -165,7 +165,7 @@ void Scene_textured_surface_mesh_item::common_constructor() setEdgeContainer(0, new Ec(Vi::PROGRAM_WITH_TEXTURED_EDGES, false));//edges getTriangleContainer(0)->setTextureSize(QSize(d->texture.GetWidth(), d->texture.GetHeight())); getEdgeContainer(0)->setTextureSize(QSize(d->texture.GetWidth(), d->texture.GetHeight())); - BOOST_FOREACH(auto v, CGAL::QGLViewer::QGLViewerPool()) + for(auto v : CGAL::QGLViewer::QGLViewerPool()) { CGAL::Three::Viewer_interface* viewer = static_cast(v); initGL(viewer); diff --git a/Polyline_simplification_2/demo/Polyline_simplification_2/Polyline_simplification_2.cpp b/Polyline_simplification_2/demo/Polyline_simplification_2/Polyline_simplification_2.cpp index 30a29401f2a..610fefba342 100644 --- a/Polyline_simplification_2/demo/Polyline_simplification_2/Polyline_simplification_2.cpp +++ b/Polyline_simplification_2/demo/Polyline_simplification_2/Polyline_simplification_2.cpp @@ -406,12 +406,12 @@ void MainWindow::loadWKT(QString if(! points.empty()){ std::cout << "Ignore " << points.size() << " isolated points" << std::endl; } - BOOST_FOREACH(LineString poly, polylines){ + for(LineString poly : polylines){ if ( poly.size() > 2 ){ m_pct.insert_constraint(poly.begin(), poly.end()); } } - BOOST_FOREACH(Polygon_with_holes_2 poly, polygons){ + for(Polygon_with_holes_2 poly : polygons){ m_pct.insert_constraint(poly.outer_boundary().vertices_begin(), poly.outer_boundary().vertices_end()); for(Polygon_with_holes_2::Hole_const_iterator it = poly.holes_begin(); it != poly.holes_end(); ++it){ const Polygon_2& hole = *it; diff --git a/STL_Extension/include/CGAL/Iterator_range.h b/STL_Extension/include/CGAL/Iterator_range.h index 06a71f09240..d71cb07f671 100644 --- a/STL_Extension/include/CGAL/Iterator_range.h +++ b/STL_Extension/include/CGAL/Iterator_range.h @@ -13,7 +13,6 @@ #define CGAL_ITERATOR_RANGE_H #include -#include #include namespace CGAL { diff --git a/Stream_support/examples/Stream_support/Linestring_WKT.cpp b/Stream_support/examples/Stream_support/Linestring_WKT.cpp index 5c95562620a..ebc863f9ee3 100644 --- a/Stream_support/examples/Stream_support/Linestring_WKT.cpp +++ b/Stream_support/examples/Stream_support/Linestring_WKT.cpp @@ -6,7 +6,6 @@ #include #include -#include //must be included before WKT for some reason #include #include #include @@ -27,7 +26,7 @@ int main(int argc, char* argv[]) CGAL::read_linestring_WKT(is, ls); is.close(); } - BOOST_FOREACH(Point p, ls) + for(Point p : ls) std::cout< #include -#include - #include //typedef CGAL::Simple_cartesian Kernel; @@ -26,7 +24,7 @@ int main(int argc, char* argv[]) std::ifstream is((argc>1)?argv[1]:"data/multipoint.wkt"); MultiPoint mp; CGAL::read_multi_point_WKT(is, mp); - BOOST_FOREACH(const Point& p, mp) + for(const Point& p : mp) { std::cout< #include -#include - #include #include @@ -35,7 +33,7 @@ int main(int argc, char* argv[]) if(!p.outer_boundary().is_empty()) polys.push_back(p); }while(is.good() && !is.eof()); - BOOST_FOREACH(Polygon p, polys) + for(Polygon p : polys) std::cout<2)?argv[2]:"data/multipolygon.wkt"); MultiPolygon mp; CGAL::read_multi_polygon_WKT(is, mp); - BOOST_FOREACH(Polygon p, mp) + for(Polygon p : mp) std::cout< #include -#include - #include //typedef CGAL::Simple_cartesian Kernel; @@ -35,12 +33,12 @@ int main(int argc, char* argv[]) MultiPolygon polygons; CGAL::read_WKT(is, points,polylines,polygons); - BOOST_FOREACH(Point p, points) + for(Point p : points) std::cout< #include -#include - #include typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; diff --git a/Stream_support/test/Stream_support/test_write_WKT.cpp b/Stream_support/test/Stream_support/test_write_WKT.cpp index 9586021beb9..ac602a67a93 100644 --- a/Stream_support/test/Stream_support/test_write_WKT.cpp +++ b/Stream_support/test/Stream_support/test_write_WKT.cpp @@ -11,8 +11,6 @@ #include #include -#include - #include typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; diff --git a/Surface_mesh/examples/Surface_mesh/sm_draw_small_faces.cpp b/Surface_mesh/examples/Surface_mesh/sm_draw_small_faces.cpp index 3ab87459e1d..5d07f8a2dfa 100644 --- a/Surface_mesh/examples/Surface_mesh/sm_draw_small_faces.cpp +++ b/Surface_mesh/examples/Surface_mesh/sm_draw_small_faces.cpp @@ -4,7 +4,6 @@ #include #include #include -#include #include "draw_surface_mesh_small_faces.h" typedef CGAL::Simple_cartesian K; @@ -26,7 +25,7 @@ int main(int argc, char* argv[]) boost::tie(faces_size, created)=sm.add_property_map("f:size",0.); CGAL_assertion(created); - BOOST_FOREACH(face_descriptor fd, sm.faces()) + for(face_descriptor fd : sm.faces()) { faces_size[fd]=CGAL::Polygon_mesh_processing::face_area(fd, sm); } draw_surface_mesh_with_small_faces(sm);