Suppress warnings in noexcept_tests

This commit is contained in:
Daniel James
2018-01-13 20:31:45 +00:00
parent ce0f16f328
commit 72fb9c7c96

View File

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