From 7953ba56ba61f1d6164bb957fac0fa52df2dfe57 Mon Sep 17 00:00:00 2001 From: Tony Lewis Date: Sat, 11 Apr 2020 18:39:15 +0100 Subject: [PATCH] Update tests to run constexpr on newer MSVCs --- test/operators_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/operators_test.cpp b/test/operators_test.cpp index 82182fa..a98d6f6 100644 --- a/test/operators_test.cpp +++ b/test/operators_test.cpp @@ -934,7 +934,7 @@ main() // Where C++11 constexpr is available, compile-time test some of the operators that are able to use it to propagate constexpr #ifndef BOOST_NO_CXX11_CONSTEXPR -#ifndef BOOST_MSVC +#if !defined(BOOST_MSVC) || (_MSC_VER >= 1922) static_assert( ! static_cast( MyInt{ 1 } == MyInt{ 2 } ), "" ); static_assert( MyInt{ 1 } != MyInt{ 2 }, "" ); static_assert( MyInt{ 1 } < MyInt{ 2 }, "" );