Index: boost/property_tree/detail/xml_parser_read_rapidxml.hpp =================================================================== --- boost/property_tree/detail/xml_parser_read_rapidxml.hpp (revision 61530) +++ boost/property_tree/detail/xml_parser_read_rapidxml.hpp (working copy) @@ -103,9 +103,12 @@ try { // Parse using appropriate flags - const int f_tws = parse_normalize_whitespace - | parse_trim_whitespace; + const int f_tws = (parse_normalize_whitespace + | parse_trim_whitespace); const int f_c = parse_comment_nodes; + const int f_tws_c = (parse_normalize_whitespace + | parse_trim_whitespace + | parse_comment_nodes); xml_document doc; if (flags & no_comments) { if (flags & trim_whitespace) @@ -114,7 +117,7 @@ doc.BOOST_NESTED_TEMPLATE parse<0>(&v.front()); } else { if (flags & trim_whitespace) - doc.BOOST_NESTED_TEMPLATE parse(&v.front()); + doc.BOOST_NESTED_TEMPLATE parse(&v.front()); else doc.BOOST_NESTED_TEMPLATE parse(&v.front()); }