diff --git a/test/aux_/increased_arity.cpp b/test/aux_/increased_arity.cpp index d5c216d..47a433d 100644 --- a/test/aux_/increased_arity.cpp +++ b/test/aux_/increased_arity.cpp @@ -20,31 +20,31 @@ #include -#include #include #include #include -#include #include #define TEST_N_ARY(unused1, N, unused2) \ - struct BOOST_PP_CAT(_, BOOST_PP_CAT(N, _ary)) \ - { \ - MPL_ASSERT(( \ - apply< \ - and_, \ - BOOST_PP_ENUM_PARAMS(N, true_ BOOST_PP_INTERCEPT) \ - > \ - )); \ - }; \ + static_assert_< \ + apply< \ + and_, \ + BOOST_PP_ENUM_PARAMS(N, true_ BOOST_PP_INTERCEPT) \ + > \ + >(); \ /**/ +template +void static_assert_(){ + MPL_ASSERT((typename assertion::type)); +} + MPL_TEST_CASE() { BOOST_PP_REPEAT_FROM_TO( - 2, - BOOST_PP_INC(BOOST_MPL_LIMIT_METAFUNCTION_ARITY), - TEST_N_ARY, - _ - ) + 2, + BOOST_PP_INC(BOOST_MPL_LIMIT_METAFUNCTION_ARITY), + TEST_N_ARY, + _ + ) }