Merge branch 'fix_filtered_smart_range' into 'master'

add assignment operator to FilteredIterator to allow combination of filtered and argmin

See merge request OpenMesh/OpenMesh!276
This commit is contained in:
Jan Möbius
2020-08-12 08:57:45 +02:00

View File

@@ -441,6 +441,13 @@ struct FilteredSmartRangeT : public SmartRangeT<FilteredSmartRangeT<RangeT, Hand
operator++(); operator++();
} }
FilteredIterator& operator=(const FilteredIterator& other)
{
BaseIterator::operator=(other);
end_ = other.end_;
return *this;
}
FilteredIterator& operator++() FilteredIterator& operator++()
{ {
if (BaseIterator::operator==(end_)) // don't go past end if (BaseIterator::operator==(end_)) // don't go past end