|
Boost Users : |
From: Paul Giaccone (paulg_at_[hidden])
Date: 2005-10-17 10:53:48
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
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