Boost C++ Libraries: Ticket #1141: Dangerious operator<< for wostream https://svn.boost.org/trac10/ticket/1141 <pre class="wiki">#include &lt;boost/archive/xml_woarchive.hpp&gt; #include &lt;sstream&gt; int main() { using namespace std; using namespace boost; using namespace boost::archive; wstringstream s; s &lt;&lt; "....................................."; } </pre><p> The code causes memory corrupt because there is a dangerious operator&lt;&lt; declare in xml_woarchive.hpp. </p> <pre class="wiki">BOOST_WARCHIVE_DECL(std::wostream &amp;) operator&lt;&lt;(std::wostream &amp;os, const char *t); </pre><p> If this operator is only used internal, it should not be exported. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1141 Trac 1.4.3 Robert Ramey Fri, 30 Nov 2007 19:18:36 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1141#comment:1 https://svn.boost.org/trac10/ticket/1141#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> good call. I'm fixing this. </p> <p> RObert Ramey </p> Ticket