Suppress annoying MSVC warnings

[SVN r35423]
This commit is contained in:
Douglas Gregor
2006-09-29 17:23:17 +00:00
parent 0207da8008
commit 0123f84bff

View File

@ -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