I use boost ptree to read an XML file as follows:
ptree myTree; ... try{ myTree.get<string>(s); } catch(boost::exception const& ex) { }
I know that I can use the what() function, but it causes an error and the lines I just sent.
Is there a way to get more useful information, such as line numbers in xml, that are relevant to the call?
c ++ boost xml exception ptree
yonigo
source share