Subject: Re: [boost] PR: Remove safe_bool idiom from boost.tribool
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2018-05-21 00:34:05
On 20/05/2018 06:34, Robert Ramey wrote:
> As usual, discussions have gotten off on various tangents.
> My proposal is to replace the safe_bool idiom used in boost::tribool
> with a simple operator bool.
I'm strongly opposed to downgrading from safe_bool to implicit bool.
Upgrading to explicit bool is ok, but you can only do that on C++11;
it's not safe in older compilers.
I would be ok with #if logic that uses safe_bool on older compilers and
explicit bool on C++11 and up.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk