Unordered: Move MSVC warning suppression to correct location.

[SVN r80412]
This commit is contained in:
Daniel James
2012-09-05 19:02:29 +00:00
parent b6b54610c6
commit ed369d6374
2 changed files with 9 additions and 9 deletions

View File

@ -20,11 +20,6 @@
#include <boost/limits.hpp> #include <boost/limits.hpp>
#include <boost/iterator.hpp> #include <boost/iterator.hpp>
#if defined(BOOST_MSVC)
#pragma warning(push)
#pragma warning(disable:4127) // conditional expression is constant
#endif
namespace boost { namespace unordered { namespace detail { namespace boost { namespace unordered { namespace detail {
template <typename Types> struct table; template <typename Types> struct table;
@ -799,8 +794,4 @@ namespace boost { namespace unordered { namespace detail {
#endif #endif
}}} }}}
#if defined(BOOST_MSVC)
#pragma warning(pop)
#endif
#endif #endif

View File

@ -13,6 +13,11 @@
#include <boost/type_traits/alignment_of.hpp> #include <boost/type_traits/alignment_of.hpp>
#include <cmath> #include <cmath>
#if defined(BOOST_MSVC)
#pragma warning(push)
#pragma warning(disable:4127) // conditional expression is constant
#endif
namespace boost { namespace unordered { namespace detail { namespace boost { namespace unordered { namespace detail {
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
@ -895,4 +900,8 @@ namespace boost { namespace unordered { namespace detail {
} }
}}} }}}
#if defined(BOOST_MSVC)
#pragma warning(pop)
#endif
#endif #endif