Non-reference return type of quadrature point wrapper
I see this on the current master (with a possible change):
template< class Quadrature >
- static inline typename Quadrature::CoordinateType
+ static inline const typename Quadrature::CoordinateType&
coordinate ( const QuadraturePointWrapper< Quadrature > &x )
{
return x.position();
Doesn't the non-reference return type of the QuadraturPointWrapper cause an unnecessary copy operation? Or is there a reason not to use a reference?
Cheers
Claus