mirror of https://github.com/CGAL/cgal
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:
parent
667171927a
commit
b87e226ebb
|
|
@ -530,7 +530,7 @@ public:
|
||||||
typedef Triangulation_segment_simplex_iterator_3<Self> Segment_simplex_iterator;
|
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_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:
|
private:
|
||||||
// Auxiliary iterators for convenience
|
// Auxiliary iterators for convenience
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue