From 1be95efcd5fcd37a3429cfbc2a369a1b9cb8a430 Mon Sep 17 00:00:00 2001 From: Clement Jamin Date: Wed, 2 Jul 2014 17:07:54 +0200 Subject: [PATCH] Replace boost::tuple by CGAL::cpp11::tuple --- Mesh_3/include/CGAL/Mesh_3/Refine_facets_3.h | 48 ++++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/Refine_facets_3.h b/Mesh_3/include/CGAL/Mesh_3/Refine_facets_3.h index 2003dbfc487..3323b417a76 100644 --- a/Mesh_3/include/CGAL/Mesh_3/Refine_facets_3.h +++ b/Mesh_3/include/CGAL/Mesh_3/Refine_facets_3.h @@ -51,7 +51,6 @@ #include #include #include -#include namespace CGAL { @@ -101,7 +100,7 @@ struct Get_Is_facet_bad { public: Facet_to_refine_is_not_zombie() {} - bool operator()(const boost::tuple< + bool operator()(const CGAL::cpp11::tuple< Facet, unsigned int, Facet, unsigned int> &f) const { #ifdef _DEBUG @@ -169,11 +168,11 @@ protected: #if defined(CGAL_MESH_3_USE_LAZY_SORTED_REFINEMENT_QUEUE) \ || defined(CGAL_MESH_3_USE_LAZY_UNSORTED_REFINEMENT_QUEUE) - boost::tuple + CGAL::cpp11::tuple from_facet_to_refinement_queue_element(const Facet &facet, const Facet &mirror) const { - return boost::make_tuple( + return CGAL::cpp11::make_tuple( facet, facet.first->erase_counter(), mirror, mirror.first->erase_counter()); } @@ -228,11 +227,11 @@ protected: m_last_vertex_index.local() = i; } - boost::tuple + CGAL::cpp11::tuple from_facet_to_refinement_queue_element(const Facet &facet, const Facet &mirror) const { - return boost::make_tuple( + return CGAL::cpp11::make_tuple( facet, facet.first->erase_counter(), mirror, mirror.first->erase_counter()); } @@ -280,8 +279,8 @@ template, + CGAL::cpp11::tuple, typename Criteria::Facet_quality, Facet_to_refine_is_not_zombie, Concurrency_tag @@ -290,8 +289,8 @@ template, + CGAL::cpp11::tuple, typename Criteria::Facet_quality, Facet_to_refine_is_not_zombie, Concurrency_tag @@ -299,8 +298,8 @@ template, + CGAL::cpp11::tuple, typename Criteria::Facet_quality, Facet_to_refine_is_not_zombie, Concurrency_tag @@ -318,8 +317,8 @@ template, + CGAL::cpp11::tuple, typename Criteria::Facet_quality, Facet_to_refine_is_not_zombie, Concurrency_tag @@ -327,8 +326,8 @@ template, + CGAL::cpp11::tuple, typename Criteria::Facet_quality, Facet_to_refine_is_not_zombie, Concurrency_tag @@ -635,8 +634,9 @@ private: typedef typename Gt::Ray_3 Ray_3; typedef typename Gt::Line_3 Line_3; - typedef typename boost::optional > - Facet_properties; + typedef typename boost::optional< + CGAL::cpp11::tuple > + Facet_properties; private: /// Get mirror facet @@ -1641,8 +1641,8 @@ compute_facet_properties(const Facet& facet, if(surface) #endif // CGAL_MESH_3_NO_LONGER_CALLS_DO_INTERSECT_3 fp = Facet_properties(CGAL::cpp11::make_tuple(*surface, - CGAL::cpp11::get<1>(intersect), - CGAL::cpp11::get<0>(intersect))); + CGAL::cpp11::get<1>(intersect), + CGAL::cpp11::get<0>(intersect))); return; } } @@ -1674,8 +1674,8 @@ compute_facet_properties(const Facet& facet, #endif // CGAL_MESH_3_NO_LONGER_CALLS_DO_INTERSECT_3 { fp = Facet_properties(CGAL::cpp11::make_tuple(*surface, - CGAL::cpp11::get<1>(intersect), - CGAL::cpp11::get<0>(intersect))); + CGAL::cpp11::get<1>(intersect), + CGAL::cpp11::get<0>(intersect))); return; } @@ -1705,8 +1705,8 @@ compute_facet_properties(const Facet& facet, Intersection intersect = construct_intersection(line); fp = Facet_properties(CGAL::cpp11::make_tuple(*surface, - CGAL::cpp11::get<1>(intersect), - CGAL::cpp11::get<0>(intersect))); + CGAL::cpp11::get<1>(intersect), + CGAL::cpp11::get<0>(intersect))); return; } }