Hi Carsten,

On 03/05/2012 04:50 PM, Carsten Neumann wrote:
>
> hmm, the "just keep it" part is what I'm not sure how to do for
> something that is only held via a weak reference from the tree being
> cloned ;)
> deepClone() would need to be able to return something like
> std::vector<FieldContainerUnrecPtr>  for all parent-less weakly
> referenced containers in the cloned tree to make sure that there is at
> least one strong reference to keep them alive.

I would leave that responsibility on the user. If they have nides that are 
referenced that are outside the tree being cloned, they need to keep them 
alive. 
Not the nicest approach, but I think in many cases it would be practical and 
useful.

Just my $.02

        Dirk

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to