From a9be3b15e3265dd8684667e2e3f91a348d6aff1c Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 10 Nov 2005 19:48:00 +0000 Subject: [PATCH] Improved warning suppression for vc8 [SVN r31620] --- include/boost/type_traits/integral_constant.hpp | 6 ++++++ include/boost/type_traits/is_reference.hpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/boost/type_traits/integral_constant.hpp b/include/boost/type_traits/integral_constant.hpp index 174cb27..0a6450a 100755 --- a/include/boost/type_traits/integral_constant.hpp +++ b/include/boost/type_traits/integral_constant.hpp @@ -60,16 +60,22 @@ public: template<> struct integral_constant : public mpl::true_ { #if BOOST_WORKAROUND(BOOST_MSVC, < 1300) +# pragma warning(push) +# pragma warning(disable:4097) typedef mpl::true_ base_; using base_::value; +# pragma warning(pop) #endif typedef integral_constant type; }; template<> struct integral_constant : public mpl::false_ { #if BOOST_WORKAROUND(BOOST_MSVC, < 1300) +# pragma warning(push) +# pragma warning(disable:4097) typedef mpl::false_ base_; using base_::value; +# pragma warning(pop) #endif typedef integral_constant type; }; diff --git a/include/boost/type_traits/is_reference.hpp b/include/boost/type_traits/is_reference.hpp index 8c7b195..0eb0d4f 100644 --- a/include/boost/type_traits/is_reference.hpp +++ b/include/boost/type_traits/is_reference.hpp @@ -66,7 +66,7 @@ BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_2(typename T,unsigned long N,is_reference, #ifdef BOOST_MSVC # pragma warning(push) -# pragma warning(disable: 4181) +# pragma warning(disable: 4181 4097) #endif namespace detail {