Update tests to run constexpr on newer MSVCs

This commit is contained in:
Tony Lewis 2020-04-11 18:39:15 +01:00
parent 46f72656b3
commit 7953ba56ba

View File

@ -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 // 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_NO_CXX11_CONSTEXPR
#ifndef BOOST_MSVC #if !defined(BOOST_MSVC) || (_MSC_VER >= 1922)
static_assert( ! static_cast<bool>( MyInt{ 1 } == MyInt{ 2 } ), "" ); static_assert( ! static_cast<bool>( MyInt{ 1 } == MyInt{ 2 } ), "" );
static_assert( MyInt{ 1 } != MyInt{ 2 }, "" ); static_assert( MyInt{ 1 } != MyInt{ 2 }, "" );
static_assert( MyInt{ 1 } < MyInt{ 2 }, "" ); static_assert( MyInt{ 1 } < MyInt{ 2 }, "" );