Boost C++ Libraries: Ticket #631: Bug in xml_oarchive_impl<Archive>::save(const std::string&) https://svn.boost.org/trac10/ticket/631 <pre class="wiki">Bug in file "boost/archive/impl/xml_oarchive_impl.ipp" line 82 method: template&lt;class Archive&gt; BOOST_ARCHIVE_DECL(void) xml_oarchive_impl&lt;Archive&gt;::save(const std::string &amp; s ). Second argument of call: std::copy( xml_escape_translator(BOOST_MAKE_PFTO_WRAPPER(s.data() )), xml_escape_translator(BOOST_MAKE_PFTO_WRAPPER(s.data()+ s.size())), boost::archive::iterators::ostream_iterator&lt;char&gt;(os)) is wrong: in constructor of xml_escape_translator the method template&lt;class Base&gt; char xml_escape&lt;Base&gt;::fill( const char * &amp; bstart, const char * &amp; bend) is called for after-last symbol!!! If this symbol is, e.g., '&gt;' - we have error: iterators _First and _Last in call of std::copy (see above) are always not equal (members 'm_bnext' and 'm_bend' are always non-zero and comparation of these iterators in this case are return always 'false') and we have access violation. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/631 Trac 1.4.3 Robert Ramey Tue, 16 May 2006 18:07:55 GMT <link>https://svn.boost.org/trac10/ticket/631#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/631#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=396141 I previously checked in a correction to escape.hpp which I believe addresses this problem. Its in Boost CVS RC_1_34_0 . You might try this and see it resolves your case. The error I corrected came up in the context of STLPort 5.0 which doesn't terminate strings with NULL. Robert Ramey </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Tue, 16 May 2006 18:07:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/631#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/631#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=396141 Thank you for submitting a bug report to BOOST </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>sf-robot</dc:creator> <pubDate>Wed, 31 May 2006 02:20:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/631#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/631#comment:3</guid> <description> <pre class="wiki">Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>sf-robot</dc:creator> <pubDate>Wed, 31 May 2006 02:20:42 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/631#comment:4 https://svn.boost.org/trac10/ticket/631#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket