From 07a5457dcdcbe6c4b72891f8cf0e3d700f14bc63 Mon Sep 17 00:00:00 2001 From: Bruno Dutra Date: Sat, 21 Mar 2015 21:08:05 -0300 Subject: [PATCH] avoiding errors on visual studio compilers errors were due to the way MPL_ASSERT is defined for these compilers --- test/aux_/increased_arity.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) 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, + _ + ) }