Boost C++ Libraries: Ticket #3927: system_error::what() doesn't incorporate code.message() if this->code().value() == 0 https://svn.boost.org/trac10/ticket/3927 <p> if error_code is given 0 as the first argument then system_error::what() ignores code().message(). </p> <p> This piece of code </p> <pre class="wiki">boost::system::error_code const ec(0, boost::system::system_category); boost::system::system_error se(ec); cout &lt;&lt; se.what() &lt;&lt; endl; </pre><p> will not print anything. "Success" is expected. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3927 Trac 1.4.3 Dmitry Goncharov <dgoncharov@…> Sat, 13 Feb 2010 13:46:57 GMT attachment set https://svn.boost.org/trac10/ticket/3927 https://svn.boost.org/trac10/ticket/3927 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">system_error.patch</span> </li> </ul> <p> This patch fixes the bug. Tested on linux with gcc-4.4.2 and freebsd with gcc-4.2.1 </p> Ticket Beman Dawes Sat, 13 Feb 2010 17:08:42 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3927#comment:1 https://svn.boost.org/trac10/ticket/3927#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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/59673" title="Fix #3927">[59673]</a>) Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3927" title="#3927: Bugs: system_error::what() doesn't incorporate code.message() if ... (closed: fixed)">#3927</a> </p> Ticket