[BOOST]BOOST_AUTO_TEST_CASE_TEMPLATE usage
Hi, In the code snippet below, The 3rd parameter in the BOOST_AUTO_TEST_CASE_TEMPLATE is a boost::mpl::list. Is the 3rd parameter restricted only to boost::mpl::list or anything else can also be used? #define BOOST_TEST_MODULE example #include <boost/test/included/unit_test.hpp> #include <boost/test/test_case_template.hpp> #include <boost/mpl/list.hpp> //____________________________________________________________________________// typedef boost::mpl::list<long long,unsigned char> test_types; BOOST_AUTO_TEST_CASE_TEMPLATE( my_test, T, test_types ) { BOOST_CHECK_EQUAL( sizeof(T), (unsigned)4 ); } //_ Mit freundlichen Grüßen / Best Regards, Hemanth Choudary MV RBEI/ETA1
Hemanth Choudary M V (RBEI/ETA1 <HemanthChoudary.MV <at> in.bosch.com> writes:
Hi, In the code snippet below, The 3rd parameter in the BOOST_AUTO_TEST_CASE_TEMPLATE is a boost::mpl::list. Is the 3rd parameter restricted only to boost::mpl::list or anything else can also be used?
You can use anything I can iterate over with boost::mpl::for_each. What's wrong with mpl::list? Gennadiy
participants (2)
-
Gennadiy Rozental
-
Hemanth Choudary M V (RBEI/ETA1)