I recently started using std::wstring
instead of std::string
to avoid weird results with non-ASCII characters, and I didn't find a way to read an XML file where the path is of type std::wstring
using the boost library.
I'm using the boost library quiet a lot nowadays.
I use the boost::property_tree::read_xml
function with boost::property_tree::wptree
instead of the usual ptree struct. But sadly I cannot feed a std::wstring
as the first parameter to read_xml which makes it all harder.
My question is, are there any work around for reading a XML file where the path is storted as a std::wstring
?
Thanks in advance!