From: Timo Heister Date: Thu, 18 Jul 2013 19:02:53 +0000 (+0000) Subject: fix compile error in FilteredIterator introduced by change in TriaIterators X-Git-Tag: v8.0.0~80 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b559e7743e1cb56ed02de3f71457b0688b2fc544;p=dealii.git fix compile error in FilteredIterator introduced by change in TriaIterators git-svn-id: https://svn.dealii.org/trunk@30042 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/grid/filtered_iterator.h b/deal.II/include/deal.II/grid/filtered_iterator.h index 6ce569339f..4424cda65b 100644 --- a/deal.II/include/deal.II/grid/filtered_iterator.h +++ b/deal.II/include/deal.II/grid/filtered_iterator.h @@ -796,7 +796,11 @@ inline FilteredIterator:: FilteredIterator (const FilteredIterator &fi) : - BaseIterator (static_cast(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 ()) {}