Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2004-05-22 23:33:44


> add( BOOST_PARAM_TEST_CASE( bind( &test_mask, _1, 0x80 ),
> parameters_list.begin(), parameters_list.end() ) ) );
>
> I get the following error:
>
> error C2661: 'boost::unit_test_framework::create_test_case' : no
overloaded
> function takes 4 arguments

It all caused by the fact that following fails:

void moo( int , int )
{
}

template<typename T>
void foo( boost::function1<void,T> const& f )
{

}

...

foo( bind( &moo, _1, 1 ) );

Is there way to make it work?

Gennadiy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk