Fixed macro testing for __VA_OPT__ support.

This commit is contained in:
Edward Diener
2019-09-27 22:15:18 -04:00
parent e439b2555e
commit 54669af127
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
# if BOOST_PP_VARIADICS && defined(__cplusplus) && __cplusplus > 201703L # if BOOST_PP_VARIADICS && defined(__cplusplus) && __cplusplus > 201703L
# #
# define BOOST_PP_VARIADIC_OPT_FUNCTION(...) \ # define BOOST_PP_VARIADIC_OPT_FUNCTION(...) \
__VA_OPT__(0,) 0, 0, 1 \ __VA_OPT__(,) , 1, 0 \
/**/ /**/
# #
# define BOOST_PP_VARIADIC_OPT_ELEM0(e0, ...) BOOST_PP_VARIADIC_OPT_ELEM_0(e0,__VA_ARGS__) # define BOOST_PP_VARIADIC_OPT_ELEM0(e0, ...) BOOST_PP_VARIADIC_OPT_ELEM_0(e0,__VA_ARGS__)

View File

@ -19,7 +19,7 @@
# if BOOST_PP_VARIADICS && defined(__cplusplus) && __cplusplus > 201703L # if BOOST_PP_VARIADICS && defined(__cplusplus) && __cplusplus > 201703L
# include <boost/preprocessor/variadic/detail/opt.hpp> # include <boost/preprocessor/variadic/detail/opt.hpp>
# define BOOST_PP_VARIADIC_OPT() \ # define BOOST_PP_VARIADIC_OPT() \
BOOST_PP_VARIADIC_OPT_ELEM2(BOOST_PP_VARIADIC_OPT_FUNCTION(),) \ BOOST_PP_VARIADIC_OPT_ELEM2(BOOST_PP_VARIADIC_OPT_FUNCTION(?),) \
/**/ /**/
# else # else
# define BOOST_PP_VARIADIC_OPT() 0 # define BOOST_PP_VARIADIC_OPT() 0