$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.