From 9f082574f9efd012bb9bea5d991d1f40dcf90173 Mon Sep 17 00:00:00 2001 From: Eric Berberich Date: Wed, 5 Sep 2007 21:08:36 +0000 Subject: [PATCH] change in vertex_less --- .../include/CGAL/Arr_qdx_topology_traits_2.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_qdx_topology_traits_2.h b/Arrangement_on_surface_2/include/CGAL/Arr_qdx_topology_traits_2.h index b2f4ad5b8b0..c445fae02bc 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_qdx_topology_traits_2.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_qdx_topology_traits_2.h @@ -140,8 +140,8 @@ protected: // TODO check Vertex_less struct Vertex_less { - bool operator() (Vertex v1, Vertex v2) { - return &v1 < &v2; + bool operator() (Vertex *v1, Vertex *v2) { + return &(*v1) < &(*v2); } }; @@ -150,7 +150,7 @@ protected: //! type of line of discontinuity typedef std::map< Point_2, Vertex*, Point_2_less > Line_of_discontinuity; - typedef std::map< Vertex, typename Line_of_discontinuity::iterator, + typedef std::map< Vertex*, typename Line_of_discontinuity::iterator, Vertex_less > Vertices_on_line_of_discontinuity;