From 732d00341f38b09079778117a8fecd73da1e1eb2 Mon Sep 17 00:00:00 2001 From: Edward Diener Date: Tue, 12 Nov 2019 10:31:24 -0500 Subject: [PATCH] For the default VC++ preprocessor turn off __VA_OPT__ support in true c20 mode ( /Zc:__cplusplus ) as it can not handle it. --- include/boost/preprocessor/variadic/has_opt.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/preprocessor/variadic/has_opt.hpp b/include/boost/preprocessor/variadic/has_opt.hpp index 3ab0890..4e5035e 100644 --- a/include/boost/preprocessor/variadic/has_opt.hpp +++ b/include/boost/preprocessor/variadic/has_opt.hpp @@ -16,7 +16,7 @@ # # /* BOOST_PP_VARIADIC_HAS_OPT */ # -# if BOOST_PP_VARIADICS && defined(__cplusplus) && __cplusplus > 201703L +# if BOOST_PP_VARIADICS && defined(__cplusplus) && __cplusplus > 201703L && !BOOST_PP_VARIADICS_MSVC # include # define BOOST_PP_VARIADIC_HAS_OPT() \ BOOST_PP_VARIADIC_HAS_OPT_ELEM2(BOOST_PP_VARIADIC_HAS_OPT_FUNCTION(?),) \