[Dune] [Dune-Commit] dune-grid r4163 - trunk/grid/common
Martin Nolte
nolte at mathematik.uni-freiburg.de
Thu May 22 22:45:22 CEST 2008
It is like this. (*this) is a reference to IntersectionIterator< ... >. Then,
*(*this) is a reference to the Intersection< ... >. Then, on the intersection,
the boundary method calls the implementation (at least, this is the way I
understand it).
Cheers,
Martin
Markus Blatt wrote:
> Hi,
>
> I am a little bit confused:
>
> On Thu, May 22, 2008 at 07:08:42PM +0200, mnolte at dune-project.org wrote:
>>
>> //! return true if intersection is with interior or exterior boundary (see the cases above)
>> bool boundary () const DUNE_DEPRECATED
>> - {
>> - return this->realIterator.boundary();
>> - }
>> + {
>> + return (*this)->boundary();
>> + }
>>
>
> IMHO the method boundary now calls boundary on the object. This cannot
> work and will result in either a segfault or an endless recursive
> loop!
>
> Or am I missing something?
>
> Same goes for all other functions.
> Cheers,
>
> Markus
>
> P.S:: Just another reason why the Barton-Nackman-trick sucks...
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
--
Martin Nolte <nolte at mathematik.uni-freiburg.de>
Universität Freiburg phone: +49-761-203-5642
Abteilung für angewandte Mathematik fax: +49-761-203-5632
Hermann-Herder-Straße 10
79104 Freiburg, Germany
More information about the Dune
mailing list