Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63977 - sandbox/SOC/2010/bit_masks/boost/integer
From: bbartmanboost_at_[hidden]
Date: 2010-07-13 14:06:28


Author: bbartman
Date: 2010-07-13 14:06:28 EDT (Tue, 13 Jul 2010)
New Revision: 63977
URL: http://svn.boost.org/trac/boost/changeset/63977

Log:
this needs a static cast to remove the warning
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/high_bits_mask.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/boost/integer/high_bits_mask.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/high_bits_mask.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/high_bits_mask.hpp 2010-07-13 14:06:28 EDT (Tue, 13 Jul 2010)
@@ -36,7 +36,7 @@
     template<typename T, unsigned int Width>
     struct evaluate_for_msvc_08 {
         typedef typename make_unsigned<T>::type unsigned_type;
- BOOST_STATIC_CONSTANT(T, val = (~(mpl::shift_right<
+ BOOST_STATIC_CONSTANT(T, val = static_cast<T>(~(mpl::shift_right<
             integral_constant<
                 unsigned_type,
                 ~( unsigned_type(0) )


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk