Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-07-10 10:01:21


"Paul Giaccone" <paulg_at_[hidden]> wrote in message
news:44B21229.5070903_at_cinesite.co.uk...
> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net