
16 Sep
2011
16 Sep
'11
1:39 a.m.
on Thu Sep 15 2011, Ábel Sinkovics <abel-AT-elte.hu> wrote:
BOOST_MPL_ASSERT(( mpl::equal<preorder_adj::type, mpl::vector<A,B,C,D,E,F,G,A> > ));
Gordon, you can rewrite this example using metatest:
---- #include <mpllibs/metatest/test.hpp>
const mpllibs::metatest::suite_path suite("example_test_suite");
typedef mpl::equal<preorder_adj::type, mpl::vector<A,B,C,D,E,F,G,A> > my_test;
MPLLIBS_ADD_TEST(suite, my_test) ----
Why not use the function-type-trick with double parentheses employed by BOOST_MPL_ASSERT and avoid the need to write a separate typedef? -- Dave Abrahams BoostPro Computing http://www.boostpro.com