Index: boost/property_tree/detail/xml_parser_read_spirit.hpp =================================================================== --- boost/property_tree/detail/xml_parser_read_spirit.hpp (revision 49575) +++ boost/property_tree/detail/xml_parser_read_spirit.hpp (working copy) @@ -111,7 +111,7 @@ void operator()(It b, It e) const { Ptree &attr = c.stack.back()->get_child(xmlattr()); - attr.back().second.put_value(Str(b + 1, e - 1)); + attr.back().second.put_value(Str(b.base() + 1, e.base() - 1)); } }; @@ -707,7 +707,7 @@ // Initialize iterators It begin(v.begin(), v.end()); - It end; + It end(v.end(), v.end());; begin.set_position(detail::widen(filename.c_str()));