From f14a464b29807699b744823f580654d5af956876 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 19 Apr 2019 23:41:26 +0300 Subject: [PATCH] Only disable C4127 on msvc-pre-14.0 --- include/boost/core/no_exceptions_support.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/core/no_exceptions_support.hpp b/include/boost/core/no_exceptions_support.hpp index 54efb61..6fd76b2 100644 --- a/include/boost/core/no_exceptions_support.hpp +++ b/include/boost/core/no_exceptions_support.hpp @@ -32,7 +32,7 @@ # if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) # define BOOST_TRY { if ("") # define BOOST_CATCH(x) else if (!"") -# elif !defined(_MSC_VER) +# elif !defined(BOOST_MSVC) || BOOST_MSVC >= 1900 # define BOOST_TRY { if (true) # define BOOST_CATCH(x) else if (false) # else