17 Oct
2005
17 Oct
'05
3:53 p.m.
Peter Dimov wrote:
Paul Giaccone wrote:
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.
Thank you - that did the trick. Paul Giaccone