From bc6e5d0aa2bb790e667b7225a290efda2e4410d4 Mon Sep 17 00:00:00 2001 From: Ester Ezra Date: Tue, 10 Jul 2001 13:47:03 +0000 Subject: [PATCH] Changing the static_cast of the const handles to be const pointers (instead of pointers) to satisfy VC++. --- .../Arrangement/include/CGAL/Arrangement_2.h | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Packages/Arrangement/include/CGAL/Arrangement_2.h b/Packages/Arrangement/include/CGAL/Arrangement_2.h index 8a40293c340..fce1aeab946 100644 --- a/Packages/Arrangement/include/CGAL/Arrangement_2.h +++ b/Packages/Arrangement/include/CGAL/Arrangement_2.h @@ -487,7 +487,7 @@ public: #ifndef _MSC_VER return (PmVertex::is_incident_edge(e.current_iterator())); #else - return ( (static_cast(this))-> + return ( (static_cast(this))-> is_incident_edge(e.current_iterator())); #endif } @@ -497,7 +497,7 @@ public: #ifndef _MSC_VER return (PmVertex::is_incident_face(f.current_iterator())); #else - return ( (static_cast(this))-> + return ( (static_cast(this))-> is_incident_face(f.current_iterator())); #endif } @@ -511,7 +511,7 @@ public: Halfedge_around_vertex_circulator incident_halfedges() { #ifndef _MSC_VER - return Halfedge_around_vertex_circulator\ + return Halfedge_around_vertex_circulator (Halfedge_handle(PmVertex::incident_halfedges())); #else return Halfedge_around_vertex_circulator @@ -527,7 +527,7 @@ public: (Halfedge_const_handle(PmVertex::incident_halfedges())); #else return Halfedge_around_vertex_const_circulator - (Halfedge_const_handle( (static_cast(this))-> + (Halfedge_const_handle( (static_cast(this))-> incident_halfedges())); #endif @@ -569,7 +569,7 @@ public: #ifndef _MSC_VER return Vertex_const_handle(PmHalfedge::source()); #else - return Vertex_const_handle( (static_cast(this))->source()); + return Vertex_const_handle( (static_cast(this))->source()); #endif } @@ -586,7 +586,7 @@ public: #ifndef _MSC_VER return Vertex_const_handle(PmHalfedge::target()); #else - return Vertex_const_handle( (static_cast(this))->target()); + return Vertex_const_handle( (static_cast(this))->target()); #endif } @@ -603,7 +603,7 @@ public: #ifndef _MSC_VER return Face_const_handle(PmHalfedge::face()); #else - return Face_const_handle( (static_cast(this))->face()); + return Face_const_handle( (static_cast(this))->face()); #endif } @@ -620,7 +620,7 @@ public: #ifndef _MSC_VER return Halfedge_const_handle(PmHalfedge::twin()); #else - return Halfedge_const_handle( (static_cast(this))->twin()); + return Halfedge_const_handle( (static_cast(this))->twin()); #endif } @@ -637,7 +637,7 @@ public: #ifndef _MSC_VER return Halfedge_const_handle(PmHalfedge::next_halfedge() ); #else - return Halfedge_const_handle( (static_cast(this))-> + return Halfedge_const_handle( (static_cast(this))-> next_halfedge() ); #endif } @@ -659,7 +659,7 @@ public: (Halfedge_const_handle(PmHalfedge::ccb())); #else return Ccb_halfedge_const_circulator - (Halfedge_const_handle( (static_cast(this))->ccb())); + (Halfedge_const_handle( (static_cast(this))->ccb())); #endif } @@ -768,7 +768,7 @@ public: #ifndef _MSC_VER return Holes_const_iterator(PmFace::holes_begin()); #else - return Holes_const_iterator( (static_cast(this))->holes_begin()); + return Holes_const_iterator( (static_cast(this))->holes_begin()); #endif } @@ -785,7 +785,7 @@ public: #ifndef _MSC_VER return Holes_const_iterator(PmFace::holes_end()); #else - return Holes_const_iterator( (static_cast(this))->holes_end()); + return Holes_const_iterator( (static_cast(this))->holes_end()); #endif } @@ -794,7 +794,7 @@ public: #ifndef _MSC_VER return PmFace::is_halfedge_on_inner_ccb(e.current_iterator()); #else - return (static_cast(this))-> + return (static_cast(this))-> is_halfedge_on_inner_ccb(e.current_iterator()); #endif } @@ -804,7 +804,7 @@ public: #ifndef _MSC_VER return PmFace::is_halfedge_on_outer_ccb(e.current_iterator()); #else - return (static_cast(this))-> + return (static_cast(this))-> is_halfedge_on_outer_ccb(e.current_iterator()); #endif }