[xsd-users] Copying objects

Mathew Benson mathew.benson at gmail.com
Sat Mar 22 13:10:35 EDT 2014


What's the best way to copy an object or reference to an object and retain
the IDREF pointers?  I'm writing a function that needs to collect various
objects in the object model and I wanted to use one of the XSD created
objects as a container.  It already contains vectors containing the objects
I want to collect.  But I noticed when I call push_back() to store the
object away, its making a copy and the IDREF pointers are null.  Or should
I just create a custom container and store pointers?


More information about the xsd-users mailing list