[Dune] method pointer on entity.
Martin Nolte
nolte at mathematik.uni-freiburg.de
Tue Jul 7 13:51:33 CEST 2009
I support this proposal. It is also extremely weird, if the compiler can cast
an entity into an entity pointer on a function call (not to mention that is
may be very slow).
Martin
Christian Engwer wrote:
> As a followup of fs#576...
>
> I just realized how weird
>
> elementPtr_ = element;
>
> looks.
>
> To avoid confusion and strange implicit behaviour, I'd suggest to mark
> EntityPointer(const Entity&) explicit.
>
>
> Christian
>
> On Fri, Sep 05, 2008 at 03:49:03PM +0200, Robert Kloefkorn wrote:
>> Hello Dune,
>>
>> as decided in Berlin we wanted to add a method pointer that returns an
>> EntityPointer on all entities. To create an EntityPointer one would write
>>
>> EntityPointer p = entity.pointer();
>>
>>
>> Alternatively, one could add an explicit constructor taking an entity to
>> the EntityPointer class. With this one could write
>>
>> EntityPointer p( entity );
>>
>> I prefer the second way.
>> What do the developers think?
>>
>> Regards
>>
>> R
>>
>
> _______________________________________________
> 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