Boost C++ Libraries: Ticket #9919: xml_parser::read_xml() and write_xml() are limited to std::string keys https://svn.boost.org/trac10/ticket/9919 <p> boost::property_tree::xml_parser and json_parser are hardcoded to work only with keys of std::string type. </p> <p> The following code will fail to compile: </p> <p> boost::property_tree::basic_ptree&lt;boost::container::string, boost::container::string&gt; pt; std::string filename("123.xml"); boost::property_tree:xml_parser::read_xml(filename, pt); </p> <p> I have prepared a patch 8af8b6bf3b65fa59792d849b526678f176d87132 that removes this limitation and added a pull request on github </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9919 Trac 1.4.3