boost_1_30_0\boost\crc.hpp(389) : warning C4245: 'initializing' : conversion from 'int' to 'const boost::detail::mask_uint_t<16>::least', signed/unsigned mismatch
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? Thanks -- --------------------------------------------------------- erbere erbere@gmail.com
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.
participants (2)
-
ERIC BERTRAND
-
John Maddock