diff --git a/Combinatorial_map/include/CGAL/Cell_attribute.h b/Combinatorial_map/include/CGAL/Cell_attribute.h index 7cd6c2e311f..ce35d7ce44c 100644 --- a/Combinatorial_map/include/CGAL/Cell_attribute.h +++ b/Combinatorial_map/include/CGAL/Cell_attribute.h @@ -140,11 +140,11 @@ namespace CGAL { --mrefcounting; } - public: /// Get the reference counting. unsigned int get_nb_refs() const { return mrefcounting; } + public: void * for_compact_container() const { return vp; } void * & for_compact_container() diff --git a/Combinatorial_map/include/CGAL/Cell_iterators.h b/Combinatorial_map/include/CGAL/Cell_iterators.h index 71958a69c4b..a9a38c1e98c 100644 --- a/Combinatorial_map/include/CGAL/Cell_iterators.h +++ b/Combinatorial_map/include/CGAL/Cell_iterators.h @@ -112,10 +112,7 @@ namespace CGAL { CMap_cell_iterator(const Self& aiterator): Ite(aiterator), mcell_mark_number(aiterator.mcell_mark_number) - { - this->mmap->share_a_mark(this->mmark_number); - this->mmap->share_a_mark(this->mcell_mark_number); - } + { this->mmap->share_a_mark(this->mcell_mark_number); } /// Assignment operator. Self& operator=(const Self& aiterator) @@ -123,7 +120,6 @@ namespace CGAL { if (this != &aiterator) { Ite::operator=(aiterator); - this->mmap->share_a_mark(this->mmark_number); this->mmap->share_a_mark(mcell_mark_number); } return *this; @@ -205,7 +201,7 @@ namespace CGAL { mmark_number(amap.get_new_mark()) { CGAL_static_assertion( (boost::is_same::value) ); + Tag_true>::value) ); CGAL_assertion(amap.is_whole_map_unmarked(mmark_number)); mark_cell(amap, adart, mmark_number); }