I am using boost ptree to read an xml file like this:
ptree myTree;
... /*open xml file*/
try{
myTree.get<string>(s);
}
catch(boost::exception const& ex)
{
/*get useful info!*/
}
I know I can use the what()
function, but it produces an error and the strings I just sent.
Is there a way to get more useful information like the line numbers in the xml that are relevant to the call?