]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix compile error in FilteredIterator introduced by change in TriaIterators
authorTimo Heister <timo.heister@gmail.com>
Thu, 18 Jul 2013 19:02:53 +0000 (19:02 +0000)
committerTimo Heister <timo.heister@gmail.com>
Thu, 18 Jul 2013 19:02:53 +0000 (19:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@30042 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/grid/filtered_iterator.h

index 6ce569339f4dadb4fc022d707c8f1457867f2eff..4424cda65b421262db18087daf10fbe8f16ed3bb 100644 (file)
@@ -796,7 +796,11 @@ inline
 FilteredIterator<BaseIterator>::
 FilteredIterator (const FilteredIterator &fi)
   :
-  BaseIterator (static_cast<BaseIterator>(fi)),
+// this construction looks strange, but without going through the
+// address of fi, GCC would not cast fi to the base class of type
+// BaseIterator but tries to go through constructing a new
+// BaseIterator with an Accessor.
+  BaseIterator (*(BaseIterator*)(&fi)),
   predicate (fi.predicate->clone ())
 {}
 

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.