mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-30 04:07:14 +02:00
Disable __VA_OPT__ on g++ 8/9 in c++2a mode, as vaopt.cpp fails
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user