I am trying to read an xml file into a ptree using read_xml function as below:
read_xml(myFile, myPtree, boost::property_tree::xml_parser::trim_whitespace);
Here myFile is an std::string
and myPtree is a basic_ptree<std::string, std::wstring>.
It gives me the following error when building:
xml_parser_read_rapidxml.hpp(48): error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::basic_string<_Elem,_Traits,_Alloc>' (or there is no acceptable conversion)
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Alloc=std::allocator<char>
]
Any pointers on what might be causing the error?