Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74795 - trunk/boost/type_traits/detail
From: john_at_[hidden]
Date: 2011-10-08 06:52:50


Author: johnmaddock
Date: 2011-10-08 06:52:49 EDT (Sat, 08 Oct 2011)
New Revision: 74795
URL: http://svn.boost.org/trac/boost/changeset/74795

Log:
Fix msvc warnings.
Text files modified:
   trunk/boost/type_traits/detail/has_binary_operator.hpp | 2 +-
   trunk/boost/type_traits/detail/has_postfix_operator.hpp | 9 +++++++++
   trunk/boost/type_traits/detail/has_prefix_operator.hpp | 2 +-
   3 files changed, 11 insertions(+), 2 deletions(-)

Modified: trunk/boost/type_traits/detail/has_binary_operator.hpp
==============================================================================
--- trunk/boost/type_traits/detail/has_binary_operator.hpp (original)
+++ trunk/boost/type_traits/detail/has_binary_operator.hpp 2011-10-08 06:52:49 EDT (Sat, 08 Oct 2011)
@@ -40,7 +40,7 @@
 # pragma GCC system_header
 #elif BOOST_MSVC
 # pragma warning ( push )
-# pragma warning ( disable : 4018 4244 4547 4800 4804 4805 )
+# pragma warning ( disable : 4018 4244 4547 4800 4804 4805 4913 )
 #endif
 
 namespace boost {

Modified: trunk/boost/type_traits/detail/has_postfix_operator.hpp
==============================================================================
--- trunk/boost/type_traits/detail/has_postfix_operator.hpp (original)
+++ trunk/boost/type_traits/detail/has_postfix_operator.hpp 2011-10-08 06:52:49 EDT (Sat, 08 Oct 2011)
@@ -21,6 +21,11 @@
 // should be the last #include
 #include <boost/type_traits/detail/bool_trait_def.hpp>
 
+#if defined(BOOST_MSVC)
+# pragma warning ( push )
+# pragma warning ( disable : 4913 4244 )
+#endif
+
 namespace boost {
 namespace detail {
 
@@ -188,4 +193,8 @@
 
 } // namespace boost
 
+#if defined(BOOST_MSVC)
+# pragma warning (pop)
+#endif
+
 #include <boost/type_traits/detail/bool_trait_undef.hpp>

Modified: trunk/boost/type_traits/detail/has_prefix_operator.hpp
==============================================================================
--- trunk/boost/type_traits/detail/has_prefix_operator.hpp (original)
+++ trunk/boost/type_traits/detail/has_prefix_operator.hpp 2011-10-08 06:52:49 EDT (Sat, 08 Oct 2011)
@@ -34,7 +34,7 @@
 # pragma GCC system_header
 #elif BOOST_MSVC
 # pragma warning ( push )
-# pragma warning ( disable : 4146 4804 )
+# pragma warning ( disable : 4146 4804 4913 4244 )
 #endif
 
 namespace boost {


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