From 10df561578b53e84b8fd2448c83150e67bf2657f Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 25 Nov 2016 16:58:03 +0100 Subject: [PATCH] Cannot assign to a reference --- .../CGAL/Convex_hull_3/dual/halfspace_intersection_3.h | 2 +- .../examples/Subdivision_method_3/DooSabin_subdivision.cpp | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Convex_hull_3/include/CGAL/Convex_hull_3/dual/halfspace_intersection_3.h b/Convex_hull_3/include/CGAL/Convex_hull_3/dual/halfspace_intersection_3.h index d2bb0efc611..7baea61385b 100644 --- a/Convex_hull_3/include/CGAL/Convex_hull_3/dual/halfspace_intersection_3.h +++ b/Convex_hull_3/include/CGAL/Convex_hull_3/dual/halfspace_intersection_3.h @@ -153,7 +153,7 @@ namespace CGAL h = next(h,P); Point const& p2 = get(vpmap, target(h,P)); h = next(h,P); - Point const& p3 = get(vpmap, target(h,P)); + Point p3 = get(vpmap, target(h,P)); while( h!=done && collinear(p1,p2,p3) ) { diff --git a/Subdivision_method_3/examples/Subdivision_method_3/DooSabin_subdivision.cpp b/Subdivision_method_3/examples/Subdivision_method_3/DooSabin_subdivision.cpp index ae6d7f45375..7db3f66ebcd 100644 --- a/Subdivision_method_3/examples/Subdivision_method_3/DooSabin_subdivision.cpp +++ b/Subdivision_method_3/examples/Subdivision_method_3/DooSabin_subdivision.cpp @@ -3,11 +3,10 @@ #include -#include -#include +#include -typedef CGAL::Simple_cartesian Kernel; -typedef CGAL::Polyhedron_3 Polyhedron; +typedef CGAL::Simple_cartesian Kernel; +typedef CGAL::Surface_mesh Polyhedron; using namespace std; using namespace CGAL;