
I want to test a (quite large) variety of user-defined types using Boost.Test.
As a very contrived example, suppose I wanted to check numeric_limits digits for integer types
I'd like to avoid a tediously long list like this
BOOST_CHECK_EQUAL(std::numeric_limits<char>::digits, 8);
BOOST_CHECK_EQUAL(std::numeric_limits<char>::digits, 16);
BOOST_CHECK_EQUAL(std::numeric_limits<char>::digits, 32);
...
and follow the example of
BOOST_AUTO_TEST_CASE_TEMPLATE
but allow a test value to be passed too,
something like this:
typedef boost::mpl::list