mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-31 20:54:27 +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 */
|
# /* BOOST_PP_VARIADIC_HAS_OPT */
|
||||||
#
|
#
|
||||||
# if defined(__cplusplus) && __cplusplus > 201703L
|
# if defined(__cplusplus) && __cplusplus > 201703L
|
||||||
# include <boost/preprocessor/variadic/detail/has_opt.hpp>
|
# if defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 8 && __GNUC__ < 10
|
||||||
# define BOOST_PP_VARIADIC_HAS_OPT() \
|
# 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(?),) \
|
BOOST_PP_VARIADIC_HAS_OPT_ELEM2(BOOST_PP_VARIADIC_HAS_OPT_FUNCTION(?),) \
|
||||||
/**/
|
/**/
|
||||||
|
# endif
|
||||||
# else
|
# else
|
||||||
# define BOOST_PP_VARIADIC_HAS_OPT() 0
|
# define BOOST_PP_VARIADIC_HAS_OPT() 0
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user