|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63880 - in sandbox/SOC/2010/bit_masks: boost/integer lib/integer/test
From: bbartmanboost_at_[hidden]
Date: 2010-07-11 12:17:08
Author: bbartman
Date: 2010-07-11 12:17:07 EDT (Sun, 11 Jul 2010)
New Revision: 63880
URL: http://svn.boost.org/trac/boost/changeset/63880
Log:
attempting to suppress c4307 warning for right_shift so that my code will work correctly
Text files modified:
sandbox/SOC/2010/bit_masks/boost/integer/high_bits_mask.hpp | 4 +---
sandbox/SOC/2010/bit_masks/lib/integer/test/high_bit_mask_test.cpp | 15 +++++++++++++++
2 files changed, 16 insertions(+), 3 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-11 12:17:07 EDT (Sun, 11 Jul 2010)
@@ -22,8 +22,6 @@
#ifdef BOOST_MSVC
-#pragma warning( push )
-#pragma warning( disable : 4307 )
namespace detail {
template<typename T, unsigned int Width>
struct evaluate_for_msvc_08 {
@@ -33,7 +31,7 @@
typedef integral_constant<T, val> type;
};
}
-#pragma warning( pop )
+
#endif
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-11 12:17:07 EDT (Sun, 11 Jul 2010)
@@ -65,9 +65,24 @@
int main() {
+#ifdef BOOST_MSVC
+#pragma warning( push )
+#pragma warning( disable : 4307 ) // c4307 constant value overflow.
+#pragma warning( disable : 4309 ) // truncation of constant value.
+
+// Look into fixing this! I think i can actually fix this warning.
+#pragma warning( disable : 4305 ) // initializing truncation from const
+ // boost::mpl::size_t<N>::value_type to const
+ // arg.
+#endif
+
mpl::for_each< test_types >( type_tester() );
mpl::for_each< test_types_2 >( type_tester() );
mpl::for_each< test_types_3 >( type_tester() );
+#ifdef BOOST_MSVC
+#pragma warning( pop )
+#endif
+
return boost::report_errors();
}
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