From 35bb2d6dbd29002eafe158e239d1a57e4ed6e24e Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 16 May 2003 15:22:56 +0000 Subject: [PATCH] Use CGAL::Iterator_project if BOOST is not used. --- Packages/Mesh_2/include/CGAL/Conform_2.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Packages/Mesh_2/include/CGAL/Conform_2.h b/Packages/Mesh_2/include/CGAL/Conform_2.h index c311fe7d66e..77d26e08ebc 100644 --- a/Packages/Mesh_2/include/CGAL/Conform_2.h +++ b/Packages/Mesh_2/include/CGAL/Conform_2.h @@ -144,6 +144,8 @@ private: } }; + typedef typename Cluster::Vertices_map Cluster_vertices_map; + #ifdef CGAL_USE_BOOST public: typedef typename boost::projection_iterator_generator< @@ -151,14 +153,19 @@ public: typename Cluster_map::const_iterator>::type Cluster_vertices_iterator; -private: - typedef typename Cluster::Vertices_map Cluster_vertices_map; - -public: typedef typename boost::projection_iterator_generator< Pair_get_first, typename Cluster_vertices_map::const_iterator>::type Vertices_in_cluster_iterator; +#else + typedef CGAL::Iterator_project > + Cluster_vertices_iterator; + + typedef CGAL::Iterator_project< + typename Cluster_vertices_map::const_iterator, + Pair_get_first > + Vertices_in_cluster_iterator; #endif // CGAL_USE_BOOST // -- conform criteria -- @@ -235,7 +242,6 @@ public: // --- ACCESS FUNCTIONS --- int number_of_constrained_edges() const; -#ifdef CGAL_USE_BOOST int number_of_clusters_vertices() const { return cluster_map.size(); @@ -279,8 +285,6 @@ public: Vertices_in_cluster_iterator(c.vertices.end())); } -#endif - // --- HELPING FUNCTION --- void clear(); @@ -1072,4 +1076,4 @@ delaunay_conform(Tr& t) CGAL_END_NAMESPACE -#endif +#endif //CGAL_CONFORM_2_H