From da3e359504405a0f4198f15ee5fb8b93c93f46b7 Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Fri, 27 May 2022 15:03:31 +0200 Subject: [PATCH] bug fix in cc with index v1 --- Combinatorial_map/include/CGAL/Compact_container_with_index.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Combinatorial_map/include/CGAL/Compact_container_with_index.h b/Combinatorial_map/include/CGAL/Compact_container_with_index.h index 37aaea69b60..3c6f7c5723a 100644 --- a/Combinatorial_map/include/CGAL/Compact_container_with_index.h +++ b/Combinatorial_map/include/CGAL/Compact_container_with_index.h @@ -108,6 +108,7 @@ public: m_free_list=std::stack(); if(m_cc_with_index->capacity()>0) { m_used.assign(m_cc_with_index->capacity(), false); } + else { m_used.clear(); } m_first_free_index=0; // TEMPO FOR DEBUG @@ -498,7 +499,7 @@ public: using Index=Index_for_cc_with_index; using TFree_list_management=Free_list_management - ; + ; static const size_type null_descriptor=TFree_list_management::null_descriptor;