10 Jul
2006
10 Jul
'06
2:01 p.m.
"Paul Giaccone"
Josh wrote:
test->add(BOOST_TEST_CASE( &MyTest ), 0); [text unrelated to my reply trimmed... would others remember to do the same, please]
I don't know whether it would make any difference at all, but I don't see why the line above is written as shown and not as just:
test->add(BOOST_TEST_CASE( MyTest );
(unless your form is an alternative syntax that I am not aware of). I don't known why you need the extra parameter - your function MyTest doesn't take any parameters, and in any case, these would be bound rather than passed directly.
0 here is the number of expected errors. It's default value, but this is still a valid syntax. Gennadiy