From e4f165a4e8b81152999c757a6ab0f7ab8c9063c3 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 29 Aug 2007 18:59:16 +0000 Subject: [PATCH] Disable MSVC warning about native code generation. Fixes #1163 [SVN r39060] --- include/boost/function/function_base.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index 238247b..f8d8e55 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -30,6 +30,11 @@ #endif #include +#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 @@ namespace detail { #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