Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3117: BOOST_CHECK requires !!x, fails if x is convertible to bool and disables operator!
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-06 09:59:00
#3117: BOOST_CHECK requires !!x, fails if x is convertible to bool and disables
operator!
---------------------------+------------------------------------------------
Reporter: daniel_frey | Owner: rogeeff
Type: Bugs | Status: closed
Milestone: Boost 1.40.0 | Component: test
Version: Boost 1.38.0 | Severity: Problem
Resolution: wontfix | Keywords:
---------------------------+------------------------------------------------
Changes (by rogeeff):
* status: reopened => closed
* resolution: => wontfix
Comment:
I am inclined to leave it as is. Double negation is rather popular pattern
and in majority of the cases does the right thing. I guess there is
something special about your operator!, but you can always cast to bool
explicitly.
So, unless if you can come up with the way to continue support types with
only operator! implemented (using enable_if or something) we probably
should keep it as is.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3117#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:00 UTC