From f8f2fe95c342e9441b8f9b9faec99f4a9785fed2 Mon Sep 17 00:00:00 2001 From: heister Date: Thu, 18 Jul 2013 19:02:53 +0000 Subject: [PATCH] fix compile error in FilteredIterator introduced by change in TriaIterators git-svn-id: https://svn.dealii.org/trunk@30042 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/grid/filtered_iterator.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ()) {} -- 2.39.5