gcc 10.3.0 says "__VA_OPT__ is not available until C++2a"

This commit is contained in:
Nobuyoshi Nakada 2021-08-01 09:54:36 +09:00
parent d99b10acb7
commit 605421f4eb
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -126,6 +126,12 @@
#if ! defined(HAVE_VA_ARGS_MACRO)
# undef HAVE___VA_OPT__
#elif defined(__cplusplus)
# if __cplusplus > 201703L
# define HAVE___VA_OPT__
# else
# undef HAVE___VA_OPT__
# endif
#else
# /* Idea taken from: https://stackoverflow.com/a/48045656 */
# define RBIMPL_TEST3(q, w, e, ...) e