Boost logo

Boost-Commit :

From: dgregor_at_[hidden]
Date: 2007-08-29 14:59:16


Author: dgregor
Date: 2007-08-29 14:59:16 EDT (Wed, 29 Aug 2007)
New Revision: 39060
URL: http://svn.boost.org/trac/boost/changeset/39060

Log:
Disable MSVC warning about native code generation. Fixes #1163
Text files modified:
   trunk/boost/function/function_base.hpp | 9 +++++++++
   1 files changed, 9 insertions(+), 0 deletions(-)

Modified: trunk/boost/function/function_base.hpp
==============================================================================
--- trunk/boost/function/function_base.hpp (original)
+++ trunk/boost/function/function_base.hpp 2007-08-29 14:59:16 EDT (Wed, 29 Aug 2007)
@@ -30,6 +30,11 @@
 #endif
 #include <boost/function_equal.hpp>
 
+#if defined(BOOST_MSVC)
+# pragma warning( push )
+# pragma warning( disable : 4793 ) // complaint about native code generation
+#endif
+
 // Define BOOST_FUNCTION_STD_NS to the namespace that contains type_info.
 #ifdef BOOST_NO_EXCEPTION_STD_NAMESPACE
 // Embedded VC++ does not have type_info in namespace std
@@ -741,4 +746,8 @@
 #undef BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL
 #undef BOOST_FUNCTION_COMPARE_TYPE_ID
 
+#if defined(BOOST_MSVC)
+# pragma warning( pop )
+#endif
+
 #endif // BOOST_FUNCTION_BASE_HEADER


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