Boost C++ Libraries: Ticket #584: boost::format and empty string crash in MSVC 8.0 https://svn.boost.org/trac10/ticket/584 <pre class="wiki">std::string x; cout &lt;&lt; boost::format("%s") % x; MSVC 8.0 will assert because of a NULL pointer. This was also reported here with details: http://lists.boost.org/Archives/boost/2006/01/99194.php </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/584 Trac 1.4.3 adalx Wed, 15 Mar 2006 10:29:15 GMT <link>https://svn.boost.org/trac10/ticket/584#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/584#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=1067739 The fix is simple. At line 48 in /boost/format/feed_args.hpp: res.append(beg, size); must be replaced with: if (size) res.append(beg, size); </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>cepstein</dc:creator> <pubDate>Wed, 22 Mar 2006 15:22:32 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/584#comment:2 https://svn.boost.org/trac10/ticket/584#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=36183 Fixed on TRUNK (feed_args.hpp 1.29) and RC_1_34_0 (1.28.6.1). </pre> Ticket