[Clam-devel] style

David García Garzón dgarcia at iua.upf.edu
Mon May 25 10:40:40 PDT 2009


On Monday 25 May 2009 19:06:38 David García Garzón wrote:
> On Monday 25 May 2009 18:29:40 Dirk Griffioen wrote:
> > - please note: with the use of smartpointers, this whole line becomes
> > obsolete as they and their resources are destructed when the vector is
>
> I know the implications on what we are doing now, we have a clear memory
> management policy, following it is not difficult and spoting the bugs of
> this kind of construction is very straight forward for us. I cannot say the
> same of the use of smart pointers as most of the things happen behind the
> scene.

That said, i am not trying to ban the use of smart pointers. Just that it is 
something that must be discussed with calm. I guess that smart pointers would 
imply some other kind of policy we should stablish and learn. How to deal 
with circular references, where to detach pointers, when and how giving away 
references... I see no gain on porting the whole code base to smart pointers. 
It is a lot of work that can be used to more useful things for the project. 
If you write new code that could be a place to introduce them but also a 
requirement for that would be solving crossplatform distribution of the 
dependencies (boost).

David.





More information about the clam-devel mailing list