Boost Property_Tree iterators, how to handle them?
问题 I am sorry, I asked a question about the same topic before, but my problem concerns another aspect of the one described there (How to iterate a boost...). Take a look at the following code: #include <iostream> #include <string> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/xml_parser.hpp> #include <boost/algorithm/string/trim.hpp> int main(int argc, char** argv) { using boost::property_tree::ptree; ptree pt; read_xml("try.xml", pt); ptree::const_iterator end = pt.end(