Yes I have an opinion; Yes it should copy userData. IMO.
As of version 2.5.3, TiXmlElement::CopyTo( TiXmlElement* target ) is inconsistent. It copies the TiXmlElement::userData, through its base class TiXmlNode::CopyTo( target ). However, it does not copy the TiXmlAttribute::userData.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just wondering if its a bug?
...good question. :) Any opinion on this?
lee
Yes I have an opinion; Yes it should copy userData. IMO.
As of version 2.5.3, TiXmlElement::CopyTo( TiXmlElement* target ) is inconsistent. It copies the TiXmlElement::userData, through its base class TiXmlNode::CopyTo( target ). However, it does not copy the TiXmlAttribute::userData.