From a9db3007853fa2728013258144329e984ad4a265 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 6 Mar 2019 00:42:36 +0200 Subject: [PATCH] Enable constexpr on msvc-14.1 version 19.16 --- include/boost/mp11/detail/config.hpp | 2 +- test/mp_for_each.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/mp11/detail/config.hpp b/include/boost/mp11/detail/config.hpp index 63c21f4..7f07fe2 100644 --- a/include/boost/mp11/detail/config.hpp +++ b/include/boost/mp11/detail/config.hpp @@ -90,7 +90,7 @@ # undef BOOST_MP11_MSVC # define BOOST_MP11_MSVC _MSC_VER -# if BOOST_MP11_WORKAROUND( BOOST_MP11_MSVC, < 1920 ) +# if BOOST_MP11_WORKAROUND( BOOST_MP11_MSVC, < 1916 ) # define BOOST_MP11_NO_CONSTEXPR # endif diff --git a/test/mp_for_each.cpp b/test/mp_for_each.cpp index 9bea05a..1db533e 100644 --- a/test/mp_for_each.cpp +++ b/test/mp_for_each.cpp @@ -10,6 +10,7 @@ #if BOOST_MP11_MSVC # pragma warning( disable: 4503 ) // decorated name length exceeded +# pragma warning( disable: 4307 ) // '*': integral constant overflow #endif #include