Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-10-17 08:19:01


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.


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