diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_shape_detection_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_shape_detection_plugin.cpp index f7134438b6e..3a731760636 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_shape_detection_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_shape_detection_plugin.cpp @@ -376,7 +376,7 @@ private: const CGAL::Identity_property_map plane_identity_map; CGAL::internal::Dynamic_property_map plane_index_map; - for (auto& it = points->begin(); it != points->end(); it++) + for (Point_set::const_iterator it = points->begin(); it != points->end(); it++) put(plane_index_map, *it, get(region_growing.region_map(), it)); if (dialog.regularize()) {