← Back to team overview

dolfin team mailing list archive

Re: MeshFunction::get(..)

 


Garth N. Wells wrote:
Is there a reason why the MeshFunction.get(..) functions return by value rather then reference, e.g. it is currently
     inline T get(const MeshEntity& entity) const

rather than

     inline T& get(const MeshEntity& entity) const

Or more accurately

  inline const T& get(const MeshEntity& entity) const
  inline T& get(const MeshEntity& entity)

Garth

Garth
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev



References