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-09-09 18:03:36


#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:
-----------------------------------+----------------------------------------

Comment (by viboes):

 Replying to [comment:2 mgruenke@…]:
> Replying to [comment:1 viboes]:
> > The code I'm seen in is
>
> Yes, and that's the problem.
>
>
> > It seems to me we can close this ticket now.
>
> Why is that? The problem has not been addressed.

 Apologies. I didn't understood that the above code was related to a change
 proposal.

 IIUC, you pretend that the proposed change behavior is compatible with the
 C++11 standard. I don't think this is the case.

 A generic library using the current error_code behavior would break when
 instantiated with an error_category that refines the is_error behavior. So
 that this is a breaking change that needs more careful documentation.

 I will suggest you to post to the std-discussion ML this possible
 enhancement.

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