[osg-users] DEEP_COPY_USERDATA isn't that deep
Chris Djali
krizdjali at gmail.com
Sat Sep 28 11:45:55 PDT 2019
Hi,
I'm not seeing a particularly easy way to deep-copy the rest of the stuff in osg::DefaultUserDataContainer, either. The description list is a vector of strings, which are deep-copied, so that's fine, but the object list is harder as I'd need to cast the const off the CopyOp if I were to deep-copy those objects (which is undesirable) or copy the CopyOp to get a non-const version, which I can't do, as there's no way to determine if it's actually a user-provided derived class.
Cheers,
Chris
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76755#76755
More information about the osg-users
mailing list