From 48b502e5bb0c7ccb830b7adfa1b86556d70b7b8e Mon Sep 17 00:00:00 2001 From: JacksonCampolattaro Date: Sat, 16 Sep 2023 18:22:38 +0200 Subject: [PATCH] Add no-op collect_garbage(visitor) method for backwards compatibility --- Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h index ab3cbe353f3..9b0acad0868 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h @@ -1272,9 +1272,11 @@ public: // todo: this should compress the array } -// //undocumented convenience function that allows to get old-index->new-index information -// template -// void collect_garbage(Visitor& visitor); + // undocumented convenience function that allows to get old-index->new-index information + template + void collect_garbage(Visitor& visitor) { + // todo: this should compress the array and remap indices + } /// controls the recycling or not of simplices previously marked as removed /// upon addition of new elements.