[Dune] method pointer on entity.
Christian Engwer
christi at uni-hd.de
Tue Jul 7 13:25:23 CEST 2009
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
>
More information about the Dune
mailing list