From 0123f84bff81a4fe7399b9e50837b8f842e5c1fa Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 29 Sep 2006 17:23:17 +0000 Subject: [PATCH] Suppress annoying MSVC warnings [SVN r35423] --- include/boost/function/function_template.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/function/function_template.hpp b/include/boost/function/function_template.hpp index 3aacea1..0568c07 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -70,6 +70,11 @@ # define BOOST_FUNCTION_RETURN(X) X; return BOOST_FUNCTION_VOID_RETURN_TYPE () #endif +#ifdef BOOST_MSVC +# pragma warning(push) +# pragma warning(disable: 4127) // conditional expression is constant. +#endif + namespace boost { namespace detail { namespace function { @@ -793,6 +798,10 @@ public: } // end namespace boost +#ifdef BOOST_MSVC +# pragma warning(pop) +#endif + // Cleanup after ourselves... #undef BOOST_FUNCTION_VTABLE #undef BOOST_FUNCTION_DEFAULT_ALLOCATOR