Should CopyTo be copying userdata?

James
2005-09-16
2013-06-28
  • James
    James
    2005-09-16

    Just wondering if its a bug?

     
    • Lee Thomason
      Lee Thomason
      2005-09-20

      ...good question. :) Any opinion on this?

      lee

       
  • Ted Hall
    Ted Hall
    2013-06-28

    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.