The free function template based test case

Definition

Synopsis

Description

This form of test cases is most useful for testing
generic template based components/algorithms with different set of template
parameters

Construction

To create a test case based on your test function
use the following macro on file level:

BOOST_META_FUNC_TEST_CASE( free_test_function
);

and following macro at the point of test case instantiation

BOOST_FUNC_TEMPLATE_TEST_CASE( free_test_function,
typelist ).

BOOST_META_FUNC_TEST_CASE defines a special
meta test case class used internally by test case implementation machinery.
The only argument is the name of the free function template - body
of the test case BOOST_FUNC_TEMPLATE_TEST_CASE cerates
a new instance of the meta test case class that corresponds to argument test
case and returns a pointer to the base class test_case. In most cases you
will use it as an argument to the method test_suite::add(...).
The first parameter to macro is the name of the free function template
- body of the test case. The second - list of types it need to be instantiated
with.