From f16777e7435ea27fcb337f8866df572877c837ce Mon Sep 17 00:00:00 2001 From: tobias-loew Date: Fri, 12 Jan 2018 13:48:16 +0100 Subject: [PATCH] MSVC == 1900 scope_exit in lambda fix fixed internal compiler error when using scope-exit inside a lambda with MSVC 1900 (VS 2015) --- include/boost/typeof/typeof.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/typeof/typeof.hpp b/include/boost/typeof/typeof.hpp index 1efa3dc..acc6c8d 100644 --- a/include/boost/typeof/typeof.hpp +++ b/include/boost/typeof/typeof.hpp @@ -15,7 +15,7 @@ #include -#if !defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) && !defined(BOOST_TYPEOF_EMULATION) +#if (!defined(_MSC_VER) || (_MSC_VER > 1900)) && !defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) && !defined(BOOST_TYPEOF_EMULATION) # define BOOST_TYPEOF_DECLTYPE # ifndef BOOST_TYPEOF_NATIVE # define BOOST_TYPEOF_NATIVE