Commit 169c1942 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'valid-iterators-for-empty-ranges' into 'master'

don't return invalid iterators for empty element ranges

See merge request !160
parents 4c23effb f5bc5500
Pipeline #6633 failed with stage
in 53 minutes and 7 seconds
......@@ -109,9 +109,6 @@ class GenericIteratorT {
: mesh_(&_mesh), hnd_(_hnd), skip_bits_(0)
{
if (_skip) enable_skipping();
// Set vertex handle invalid if the mesh contains no vertex
if((mesh_->*PrimitiveCountMember)() == 0) hnd_ = value_handle(-1);
}
/// Standard dereferencing operator.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment