From 5d19cc2d57134b2bd8881972a6596432e6c2f39c Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Tue, 28 Feb 2023 02:29:50 +0300 Subject: [PATCH] Remove template arguments redefinition workaround for VS2022 update 5. (#268) Update 5 adds /Zc:templateScope flag which causes compile errors in typedefs redefining template parameters. --- include/boost/fusion/adapted/struct/detail/adapt_base.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/fusion/adapted/struct/detail/adapt_base.hpp b/include/boost/fusion/adapted/struct/detail/adapt_base.hpp index c66118f4..9874c0f4 100644 --- a/include/boost/fusion/adapted/struct/detail/adapt_base.hpp +++ b/include/boost/fusion/adapted/struct/detail/adapt_base.hpp @@ -143,7 +143,7 @@ I, \ ATTRIBUTE) -#ifdef BOOST_MSVC +#if defined(BOOST_MSVC) && (BOOST_MSVC < 1935) # define BOOST_FUSION_ADAPT_STRUCT_MSVC_REDEFINE_TEMPLATE_PARAM(R,_,ELEM) \ typedef ELEM ELEM; # define BOOST_FUSION_ADAPT_STRUCT_MSVC_REDEFINE_TEMPLATE_PARAMS_IMPL(SEQ) \