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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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