[Boost-bugs] [Boost C++ Libraries] #3927: system_error::what() doesn't incorporate code.message() if this->code().value() == 0

Subject: [Boost-bugs] [Boost C++ Libraries] #3927: system_error::what() doesn't incorporate code.message() if this->code().value() == 0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-13 13:45:11


#3927: system_error::what() doesn't incorporate code.message() if
this->code().value() == 0
------------------------------------------------------+---------------------
 Reporter: Dmitry Goncharov <dgoncharov@…> | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: system
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
------------------------------------------------------+---------------------
 if error_code is given 0 as the first argument then system_error::what()
 ignores code().message().

 This piece of code
 {{{
 boost::system::error_code const ec(0, boost::system::system_category);
 boost::system::system_error se(ec);
 cout << se.what() << endl;
 }}}
 will not print anything.
 "Success" is expected.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3927>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC