Simplex_3 can be dereferenced in range-for-loop (not Cell_handle)

this error was found thanks to a clang warning :
warning: loop variable 's' has type 'const Simplex &' (aka 'const Triangulation_simplex_3&')
but is initialized with type
'CGAL::Triangulation_segment_simplex_iterator_3' resulting in a copy [-Wrange-loop-construct]
This commit is contained in:
Jane Tournois 2020-11-03 18:53:02 +01:00
parent 667171927a
commit b87e226ebb
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ public:
typedef Triangulation_segment_simplex_iterator_3<Self> Segment_simplex_iterator;
typedef Iterator_range<Prevent_deref<Segment_cell_iterator> > Segment_traverser_cell_handles;
typedef Iterator_range<Prevent_deref<Segment_simplex_iterator> > Segment_traverser_simplices;
typedef Iterator_range<Segment_simplex_iterator> Segment_traverser_simplices;
private:
// Auxiliary iterators for convenience