22 Feb
2007
22 Feb
'07
9:29 a.m.
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.