Opened 9 years ago

#9919 new Patches

xml_parser::read_xml() and write_xml() are limited to std::string keys

Reported by: sanderb@… Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

boost::property_tree::xml_parser and json_parser are hardcoded to work only with keys of std::string type.

The following code will fail to compile:

boost::property_tree::basic_ptree<boost::container::string, boost::container::string> pt; std::string filename("123.xml"); boost::property_tree:xml_parser::read_xml(filename, pt);

I have prepared a patch 8af8b6bf3b65fa59792d849b526678f176d87132 that removes this limitation and added a pull request on github

Change History (0)

Note: See TracTickets for help on using tickets.