operator traits: uniform handling of warning removal

[SVN r74920]
This commit is contained in:
Frédéric Bron
2011-10-11 20:38:20 +00:00
parent c1072ec858
commit da123a1166
3 changed files with 10 additions and 7 deletions

View File

@@ -38,7 +38,7 @@
// cannot find another implementation -> declared as system header to suppress these warnings.
#if defined(__GNUC__) && ((__GNUC__==3 && __GNUC_MINOR__>=1) || (__GNUC__>3))
# pragma GCC system_header
#elif BOOST_MSVC
#elif defined(BOOST_MSVC)
# pragma warning ( push )
# pragma warning ( disable : 4018 4244 4547 4800 4804 4805 4913 )
#endif
@@ -222,7 +222,7 @@ BOOST_TT_AUX_BOOL_TRAIT_DEF3(BOOST_TT_TRAIT_NAME, Lhs, Rhs=Lhs, Ret=::boost::det
} // namespace boost
#ifdef BOOST_MSVC
#if defined(BOOST_MSVC)
# pragma warning ( pop )
#endif

View File

@@ -21,9 +21,12 @@
// should be the last #include
#include <boost/type_traits/detail/bool_trait_def.hpp>
#if defined(BOOST_MSVC)
// avoid warnings
#if defined(__GNUC__) && ((__GNUC__==3 && __GNUC_MINOR__>=1) || (__GNUC__>3))
# pragma GCC system_header
#elif defined(BOOST_MSVC)
# pragma warning ( push )
# pragma warning ( disable : 4913 4244 )
# pragma warning ( disable : 4244 4913 )
#endif
namespace boost {
@@ -194,7 +197,7 @@ BOOST_TT_AUX_BOOL_TRAIT_DEF2(BOOST_TT_TRAIT_NAME, Lhs, Ret=::boost::detail::BOOS
} // namespace boost
#if defined(BOOST_MSVC)
# pragma warning (pop)
# pragma warning ( pop )
#endif
#include <boost/type_traits/detail/bool_trait_undef.hpp>

View File

@@ -32,7 +32,7 @@
// cannot find another implementation -> declared as system header to suppress these warnings.
#if defined(__GNUC__) && ((__GNUC__==3 && __GNUC_MINOR__>=1) || (__GNUC__>3))
# pragma GCC system_header
#elif BOOST_MSVC
#elif defined(BOOST_MSVC)
# pragma warning ( push )
# pragma warning ( disable : 4146 4804 4913 4244 )
#endif
@@ -203,7 +203,7 @@ BOOST_TT_AUX_BOOL_TRAIT_DEF2(BOOST_TT_TRAIT_NAME, Rhs, Ret=::boost::detail::BOOS
} // namespace boost
#ifdef BOOST_MSVC
#if defined(BOOST_MSVC)
# pragma warning ( pop )
#endif