Menu

exceptions?

Anonymous
2004-03-11
2004-03-15
  • Anonymous

    Anonymous - 2004-03-11

    wouldn't it be nice to have an exception thrown if a child or attribute is not found, instead of returning null? i realize that handles can be used for this be exceptions can be very usefull as they can be handled in a different place. It  could also be made a conditional like TIXML_USE_STL.

     
    • Lee Thomason

      Lee Thomason - 2004-03-15

      I shy away from exceptions simply because of testing. Right now there is the STL & std version. With exceptions, that gets it to STL w/exceptions, STL w/o, and std. (std with exceptions probably has no practical use case.)

      It's something I would consider if there seemed to be a lot of support for it. Exception support would also be a great patch.

      lee

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.