
11 Mar
2008
11 Mar
'08
10:28 a.m.
Why in the heck did the boost unit test framework change to remove main? Why does the documentation not reflect this? Why are the example describing the old behavior? How am I now suppose to use the Boost unit test framework? The following program will NOT compile because of the change in 1.34.1 since the 1.33: /* test_grnn.cpp #include <boost/test/unit_test.hpp> using namespace boost::unit_test_framework; void test_distance_squared () { // do work } test_suite* init_unit_test_suite ( int, char** ) { test_suite* test = BOOST_TEST_SUITE ("GRNN test suite"); // Allow GRNN to allocate our memory at any location test->add ( BOOST_TEST_CASE ( &test_distance_squared ) ); return test; }