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