dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #22227
Re: Typemap for std:vector<boost::shared_ptr<Foo> >
On Wed, Mar 23, 2011 at 09:53:04AM -0700, Johan Hake wrote:
> On Wednesday March 23 2011 09:45:13 Anders Logg wrote:
> > I think (1) even if the copying is not costly. So it needs to be
> > changed in ErrorControl.
>
> On Wednesday March 23 2011 09:46:59 Garth N. Wells wrote:
>
> > We should go with (2).
Why (2)?
We use references (or pointers) for all arguments that are not
primitive types (int, double, (shared) pointers). But as I said,
there's little to gain in efficiency here by using a reference so if
there are good reasons (like easier to implement the typemap) we can
do (1).
--
Anders
Follow ups
References