Disable __VA_OPT__ on g++ 8/9 in c++2a mode, as vaopt.cpp fails

This commit is contained in:
Peter Dimov
2022-08-16 19:09:04 +03:00
parent 108a948323
commit e919b652af

View File

@ -17,10 +17,14 @@
# /* BOOST_PP_VARIADIC_HAS_OPT */
#
# if defined(__cplusplus) && __cplusplus > 201703L
# include <boost/preprocessor/variadic/detail/has_opt.hpp>
# define BOOST_PP_VARIADIC_HAS_OPT() \
# if defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 8 && __GNUC__ < 10
# define BOOST_PP_VARIADIC_HAS_OPT() 0
# else
# include <boost/preprocessor/variadic/detail/has_opt.hpp>
# define BOOST_PP_VARIADIC_HAS_OPT() \
BOOST_PP_VARIADIC_HAS_OPT_ELEM2(BOOST_PP_VARIADIC_HAS_OPT_FUNCTION(?),) \
/**/
# endif
# else
# define BOOST_PP_VARIADIC_HAS_OPT() 0
# endif