Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63957 - sandbox/SOC/2010/bit_masks/lib/integer/test
From: bbartmanboost_at_[hidden]
Date: 2010-07-13 08:47:12


Author: bbartman
Date: 2010-07-13 08:47:08 EDT (Tue, 13 Jul 2010)
New Revision: 63957
URL: http://svn.boost.org/trac/boost/changeset/63957

Log:
Fixing warning from MSVC 9 comming from test file
Text files modified:
   sandbox/SOC/2010/bit_masks/lib/integer/test/high_bit_mask_test.cpp | 9 ++++++++-
   1 files changed, 8 insertions(+), 1 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/high_bit_mask_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/high_bit_mask_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/high_bit_mask_test.cpp 2010-07-13 08:47:08 EDT (Tue, 13 Jul 2010)
@@ -26,11 +26,18 @@
     cout << "Starting test. Test Type = " << typeid(T).name() << endl;
     // making sure that the value type is transfered correctly.
     BOOST_TEST((is_same< typename high_bits_mask<T, 3>::value_type, T >::value));
-
+#ifdef BOOST_MSVC
+#pragma warning(push)
+#pragma warning(disable: 3127)
+#endif
     if(!is_same<char,T>::value ) {
+#ifdef BOOST_MSVC
+#pragma warning(pop)
+#endif
         cout << "Mask Value: " << hex << boost::high_bits_mask<T,1>::value << endl;
         cout << "Test Value: " << hex << static_cast<T>( ~(~(typename make_unsigned<T>::type(0)) >> 1)) << endl;
     }
+
     BOOST_TEST(( boost::high_bits_mask<T,1>::value ==
         static_cast<T>( ~(~(typename make_unsigned<T>::type(0)) >> 1)) ));
     BOOST_TEST(( boost::high_bits_mask<T,2>::value ==


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