13 Jan
2014
13 Jan
'14
7:36 a.m.
2014/1/13 Antony Polukhin
2014/1/11 Oliver Kowalke
2014/1/11 Rob Stewart
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...
Just use the BOOST_EXPLICIT_OPERATOR_BOOL macro and let the library maintainer cope with explicit-bool-operator/safe_bool problem :)
that's fine - thank you, I'll change the code accordingly.