From 99de3fdefc9ff05cee19e4ac7a5ac89fdc5ab5e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Thu, 16 Feb 2023 17:58:41 +0100 Subject: [PATCH] remove pipo --- .../Region_growing/Region_growing.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Shape_detection/include/CGAL/Shape_detection/Region_growing/Region_growing.h b/Shape_detection/include/CGAL/Shape_detection/Region_growing/Region_growing.h index 63b6a168150..78b7a68189e 100644 --- a/Shape_detection/include/CGAL/Shape_detection/Region_growing/Region_growing.h +++ b/Shape_detection/include/CGAL/Shape_detection/Region_growing/Region_growing.h @@ -32,16 +32,18 @@ namespace CGAL { namespace Shape_detection { +namespace internal { template ::value> - struct pipo{ - static RegionMap create_map(RegionType) { return RegionMap(); } + struct RM_creator{ + static RegionMap create(RegionType) { return RegionMap(); } }; template - struct pipo{ - static RegionMap create_map(RegionType& r ) { return r.region_index_map(); } + struct RM_creator{ + static RegionMap create(RegionType& r ) { return r.region_index_map(); } }; +} /*! \ingroup PkgShapeDetectionRG @@ -132,7 +134,7 @@ namespace Shape_detection { ) : m_neighbor_query(neighbor_query), m_region_type(region_type), - m_region_map(pipo::create_map(region_type)), + m_region_map(internal::RM_creator::create(region_type)), m_visited(m_visited_map) { CGAL_precondition(input_range.size() > 0); @@ -196,7 +198,7 @@ namespace Shape_detection { ) : m_neighbor_query(neighbor_query), m_region_type(region_type), - m_region_map(pipo::create_map(region_type)), + m_region_map(internal::RM_creator::create(region_type)), m_visited(m_visited_map) { CGAL_precondition(input_range.size() > 0);