← Back to team overview

dolfin team mailing list archive

Re: Typemap for std:vector<boost::shared_ptr<Foo> >

 


On 23/03/11 16:42, Johan Hake wrote:
> Hi!
> 
> I got a request to implement a typemap for 
> 
>   std:vector<boost::shared_ptr<Foo> >
> 
> a while back. 
> 
> Should it be:
> 
>   1)  std:vector<boost::shared_ptr<Foo> >&
> 
> or 
> 
>   2)  std:vector<boost::shared_ptr<Foo> >
> 
> I guess copying of shared_ptr aren't that costly. But we need to be 
> consistent:
> 
>   Form
> 
> use the first version and 
> 
>   ErrorControl 
> 
> use the second version. I have no intention writing a typemap for both ;)
>

We should go with (2).

Garth


> Johan
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp




Follow ups

References