17 Oct
2005
17 Oct
'05
1:19 p.m.
Paul Giaccone wrote:
void digitise_graph_test(int argc, char* argv[]) { [...] }
boost::unit_test::test_suite* init_unit_test_suite(int argc, char* argv[]) { test -> add(BOOST_TEST_CASE(&my_test(argc, argv))); }
but this gives a compilation error:
error C2102: '&' requires l-value
test -> add( BOOST_TEST_CASE( boost::bind(my_test, argc, argv) ) ); should work.