Boost logo

Boost :

Subject: Re: [boost] Boost.Fiber review January 6-15
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2014-01-13 00:09:36


2014/1/11 Oliver Kowalke <oliver.kowalke_at_[hidden]>

> 2014/1/11 Rob Stewart <robertstewart_at_[hidden]>
>
> > That isn't an issue when the conversion operator is explicit, which
> > Vicente suggested.
> >
>
> many other boost libraries use the safe_bool idiom - I believe it's not bad
> to follow this 'common' coding practice
>

I'll try to stop the 'explicit bool operator problem' discussion by this
link:
http://www.boost.org/doc/libs/1_55_0/libs/utility/doc/html/explicit_operator_bool.html

Just use the BOOST_EXPLICIT_OPERATOR_BOOL macro and let the library
maintainer cope with explicit-bool-operator/safe_bool problem :)

-- 
Best regards,
Antony Polukhin

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk