|
Boost : |
From: Bo Persson (bop2_at_[hidden])
Date: 2003-08-07 16:27:49
"Paul A. Bristow" <boost_at_[hidden]> wrote:
>
> (And other MS specific unhelpful warnings which could be dealt with
by
>
> #ifdef _MSC_VER or BOOST_?
> #pragma warning (disable : 4800) // inefficient bool conversion?
> #endif
>
> As a general point, is there any reason why 'known to be unhelpful'
warnings
> like this cannot be disabled in Boost code?
>
A problem here is that the "inefficient bool conversion" often
actually *is* an inefficient implicit conversion to bool. IME, most of
these warnings can be removed by actually producing a bool value.
Adding == 0 or != 0 is often all it takes.
Bo Persson
bop2_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk