[Dune-devel] Reference and pointer type when dereferencing EntityPointer

Steffen Müthing steffen.muething at iwr.uni-heidelberg.de
Mon Oct 13 17:48:28 CEST 2014


Hi,

to my rather big surprise I just learned that operator* and operator-> in the EntityPointer facade
have always returned the Entity by non-const reference / pointer. It has been like that pretty much
forever (those lines were last changed in 2005!).

Is there a good reason to return a writable reference?

Steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20141013/67224ebc/attachment.sig>


More information about the Dune-devel mailing list