[v3] missed explicit bool conversion cleanups
Jason Merrill
jason@redhat.com
Wed Aug 26 00:14:00 GMT 2009
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.
Jason
More information about the Libstdc++
mailing list