[Boost-bugs] [Boost C++ Libraries] #9919: xml_parser::read_xml() and write_xml() are limited to std::string keys

Subject: [Boost-bugs] [Boost C++ Libraries] #9919: xml_parser::read_xml() and write_xml() are limited to std::string keys
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-18 02:37:50


#9919: xml_parser::read_xml() and write_xml() are limited to std::string keys
------------------------------+---------------------------
 Reporter: sanderb@… | Owner: cornedbee
     Type: Patches | Status: new
Milestone: To Be Determined | Component: property_tree
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------
 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

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9919>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC