diff --git a/test/unordered/noexcept_tests.cpp b/test/unordered/noexcept_tests.cpp index 84bb404e..4a28ce18 100644 --- a/test/unordered/noexcept_tests.cpp +++ b/test/unordered/noexcept_tests.cpp @@ -12,6 +12,12 @@ #include "../helpers/test.hpp" +#if defined(BOOST_MSVC) +#pragma warning(push) +// conditional expression is constant +#pragma warning(disable : 4127) +#endif + namespace noexcept_tests { // Test the noexcept is set correctly for the move constructor. @@ -310,4 +316,8 @@ namespace noexcept_tests { } } +#if defined(BOOST_MSVC) +#pragma warning(pop) +#endif + RUN_TESTS()