From 1250a91b2ef9ae481399793765440ebf05bc7e2b Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Fri, 14 Apr 2017 19:17:04 +0200 Subject: [PATCH] enable use of msvc compiler option /permissive- With the updated Boost.Typeof library capable of handling /permissive, the typeof workaround for msvc in Boost.Scope_Exit is no longer required. Even worse, the workaround code causes compile errors. Signed-off-by: Daniela Engert --- include/boost/scope_exit.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/scope_exit.hpp b/include/boost/scope_exit.hpp index b834e55..11340dd 100644 --- a/include/boost/scope_exit.hpp +++ b/include/boost/scope_exit.hpp @@ -61,7 +61,7 @@ # define BOOST_SCOPE_EXIT_AUX_TPL_GCC_WORKAROUND_01 0 #endif -#if BOOST_MSVC +#if BOOST_MSVC && (BOOST_MSVC <= 1900) # define BOOST_SCOPE_EXIT_AUX_TYPEOF_THIS_MSVC_WORKAROUND_01 1 #else # define BOOST_SCOPE_EXIT_AUX_TYPEOF_THIS_MSVC_WORKAROUND_01 0