From d92355cca295ac1a90c4fc2f44dd5b6d9c6f341c Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 29 Sep 2006 17:23:28 +0000 Subject: [PATCH] Suppress annoying MSVC warnings [SVN r35424] --- 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 0568c07..b6f786c 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -75,6 +75,11 @@ # pragma warning(disable: 4127) // conditional expression is constant. #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: } }; +#ifdef BOOST_MSVC +# pragma warning(pop) +#endif + #undef BOOST_FUNCTION_PARTIAL_SPEC #endif // have partial specialization