Re: [Boost-bugs] [Boost C++ Libraries] #11064: boost support c++11 with Solaris Studio 12.4

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11064: boost support c++11 with Solaris Studio 12.4
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-26 09:00:47


#11064: boost support c++11 with Solaris Studio 12.4
-------------------------------+---------------------
  Reporter: zhifan | Owner: andysem
      Type: Support Requests | Status: new
 Milestone: To Be Determined | Component: log
   Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------

Comment (by andysem):

 This is a compiler bug, the sentry class defined by STL must be
 convertible to bool (which makes basic_formatting_ostream<>::sentry
 convertible as well). Please, report it to the compiler vendor.

 As for the workaround, I don't have this compiler to test it. I'd
 appreciate if you could provide a patch. I can suggest two possible
 avenues of experimenting:

 1. Change all conditional expressions involving sentry to double negative
 forms. E.g. change "if (guard)" to "if (!!guard)".

 2. Add operator!() and BOOST_EXPLICIT_OPERATOR_BOOL() to
 basic_formatting_ostream<>::sentry definition.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11064#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:18 UTC