Boost logo

Boost :

Subject: [boost] [property_tree] xml_parser::read_xml() and write_xml() are limited to std::string keys
From: Alexander Bogdashevsky (sanderb_at_[hidden])
Date: 2014-04-16 22:49:41

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 that removes this limitation.

Please consider pulling

Kind Regards,
Alexander Bogdashevsky

Boost list run by bdawes at, gregod at, cpdaniel at, john at