Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53505 - trunk/boost/unordered/detail
From: daniel_james_at_[hidden]
Date: 2009-05-31 11:50:56


Author: danieljames
Date: 2009-05-31 11:50:56 EDT (Sun, 31 May 2009)
New Revision: 53505
URL: http://svn.boost.org/trac/boost/changeset/53505

Log:
Disable incorrect Visual C++ 64-bit warnings. Ref #3082.
Text files modified:
   trunk/boost/unordered/detail/hash_table.hpp | 12 ++++++++++++
   1 files changed, 12 insertions(+), 0 deletions(-)

Modified: trunk/boost/unordered/detail/hash_table.hpp
==============================================================================
--- trunk/boost/unordered/detail/hash_table.hpp (original)
+++ trunk/boost/unordered/detail/hash_table.hpp 2009-05-31 11:50:56 EDT (Sun, 31 May 2009)
@@ -61,6 +61,14 @@
 
 #endif
 
+#if defined(BOOST_MSVC)
+#pragma warning(push)
+#if BOOST_MSVC >= 1400
+#pragma warning(disable:4267) // conversion from 'size_t' to 'unsigned int',
+ // possible loss of data.
+#endif
+#endif
+
 #if BOOST_WORKAROUND(__BORLANDC__, <= 0x0582)
 #define BOOST_UNORDERED_BORLAND_BOOL(x) (bool)(x)
 #else
@@ -332,4 +340,8 @@
 #undef BOOST_UNORDERED_BORLAND_BOOL
 #undef BOOST_UNORDERED_MSVC_RESET_PTR
 
+#if defined(BOOST_MSVC)
+#pragma warning(pop)
+#endif
+
 #endif // BOOST_UNORDERED_DETAIL_HASH_TABLE_HPP_INCLUDED


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