]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix Initialization of FilteredIterator from base class
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 5 Feb 2017 16:41:23 +0000 (17:41 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 5 Feb 2017 16:44:53 +0000 (17:44 +0100)
include/deal.II/grid/filtered_iterator.h

index b9908dcf7a9b03126f26624180419c684888d431..22d6dff9aa9472bca6e91ebf1b7bfe1912dfa441 100644 (file)
@@ -960,10 +960,8 @@ FilteredIterator<BaseIterator> &
 FilteredIterator<BaseIterator>::
 operator = (const FilteredIterator &fi)
 {
-  Assert ((fi.state() != IteratorState::valid) || (*predicate)(fi),
-          ExcInvalidElement(fi));
-  BaseIterator::operator = (fi);
-  return *this;
+  const BaseIterator &bi = fi;
+  return operator = (bi);
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.