This is the mail archive of the
mailing list for the libstdc++ project.
Re: [v3] missed explicit bool conversion cleanups
On 08/06/2009 03:12 PM, Benjamin Kosnik wrote:
- if (__cerb)
+ if (static_cast<bool>(__cerb))
That shouldn't be necessary.
[conv]: Certain language constructs require that an expression be
converted to a Boolean value. An expression e appearing in such a
context is said to be contextually converted to bool and is well-formed
if and only if the declaration bool t(e); is well-formed, for some
invented temporary variable t (8.5).
I'll take a look at this bug.