diff --git a/include/boost/property_tree/detail/xml_parser_read_spirit.hpp b/include/boost/property_tree/detail/xml_parser_read_spirit.hpp index a368adb..d4eaea5 100644 --- a/include/boost/property_tree/detail/xml_parser_read_spirit.hpp +++ b/include/boost/property_tree/detail/xml_parser_read_spirit.hpp @@ -111,7 +111,7 @@ namespace boost { namespace property_tree { namespace xml_parser 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 @@ namespace boost { namespace property_tree { namespace xml_parser // Initialize iterators It begin(v.begin(), v.end()); - It end; + It end(v.end(), v.end());; begin.set_position(detail::widen(filename.c_str()));