Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2007-02-22 04:29:25


ERIC BERTRAND wrote:
>> I have this warning on Visual studio 2005. I want to get rid of
>> theses warning. It apperas at line
>>
>> BOOST_STATIC_CONSTANT( least, sig_bits = (~( least(0u) )) );
>>
>> if I cast (least)(~( least(0u) )) I have not the warning. I want to
>> be sure this is acceptable. Can someone confirm to me?

If it works for you locally, then yes fine.

However, I've found that typecasts in integral-constant-expressions often
cause compiler errors: I've recently had to back out one fix that did
something similar for this reason, so it's probably not a fix we can apply
to cvs :-(

John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net