Re: [Boost-bugs] [Boost C++ Libraries] #7964: 'boost::system::error_code::unspecified_bool_type' : forcing value to bool 'true' or 'false' (performance warning)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7964: 'boost::system::error_code::unspecified_bool_type' : forcing value to bool 'true' or 'false' (performance warning)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-02 22:35:00

#7964: 'boost::system::error_code::unspecified_bool_type' : forcing value to bool
'true' or 'false' (performance warning)
  Reporter: szx <szx@…> | Owner: bemandawes
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: system
   Version: Boost Development Trunk | Severity: Problem
Resolution: fixed | Keywords:
Changes (by bemandawes):

  * status: new => closed
  * resolution: => fixed


 I was able to reproduce this warning, but I don't see any short term fix.
 Seems like the warning is an artifact of the unspecified_bool_type idiom.

 The longer term fix is for boost.system to use the C++11 explicit
 conversion operator, as is specified for the standard library's version of
 these classes. That change has now been made (changeset 83210) for
 compilers that support the C++11 explicit conversion operator, such as
 late model gcc and VC++ November 2012 CTP. On that basis, the issue is
 being closed.



Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

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