isempty_variadic_standard_failure.cxx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # /* **************************************************************************
  2. # * *
  3. # * (C) Copyright Edward Diener 2014.
  4. # * Distributed under the Boost Software License, Version 1.0. (See
  5. # * accompanying file LICENSE_1_0.txt or copy at
  6. # * http://www.boost.org/LICENSE_1_0.txt)
  7. # * *
  8. # ************************************************************************** */
  9. #
  10. # /* See http://www.boost.org for most recent version. */
  11. #
  12. # include <boost/preprocessor/facilities/is_empty.hpp>
  13. # include <libs/preprocessor/test/test.h>
  14. #if BOOST_PP_VARIADICS && (BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()) && !BOOST_PP_VARIADICS_MSVC
  15. #define FUNC_GEN8(x,y) (1,2,3)
  16. #if defined(__cplusplus) && __cplusplus > 201703L
  17. # include <boost/preprocessor/variadic/has_opt.hpp>
  18. BEGIN BOOST_PP_IS_EMPTY(FUNC_GEN8) == BOOST_PP_VARIADIC_HAS_OPT() END
  19. #else
  20. BEGIN BOOST_PP_IS_EMPTY(FUNC_GEN8) == 0 END
  21. #endif
  22. #else
  23. BEGIN 1 == 0 END
  24. #endif