Re: [Boost-bugs] [Boost C++ Libraries] #5357: system::error_code::operator unspecified_bool_type() should not assume 0 == success.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5357: system::error_code::operator unspecified_bool_type() should not assume 0 == success.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-25 08:35:05


#5357: system::error_code::operator unspecified_bool_type() should not assume 0 ==
success.
-----------------------------------+----------------------------------------
  Reporter: mgruenke@… | Owner: bemandawes
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: system
   Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------+----------------------------------------
Changes (by viboes):

 * cc: viboes (added)

Comment:

 The code I'm seen in is


 {{{
       operator unspecified_bool_type() const // true if error
       {
         return m_val == 0 ? 0 : unspecified_bool_true;
       }

 }}}

 It seems to me we can close this ticket now.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5357#comment:1>
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:10 UTC