Hello Dirk,
On 03/02/2012 03:07 PM, Dirk Reiners wrote:
> Carsten, Gerrit: what about the following semantics: deepClone could
> keep track of the FCs it is cloning (probably does that already
> anyway), and if it finds a reference (or weak reference) to an FC that
> is being cloned, repalce it with the clone. If it finds a reference to
> outside the cloned tree just keep it.
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.
Cheers,
Carsten
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
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-dev2
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users