1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
template<typename accStrategy = float>
int const adaptSR(int const MAX_AL, float const CONFIDENT_LV, int const OFFSET, accStrategy PLAN)
{
return 1;
}
template<typename accStrategy = float>
int const adaptSR(int const MAX_AL, float const CONFIDENT_LV, int const OFFSET)
{
return 1;
}
template<typename T>
void testArg(T haha)
{
int const MAX_AL = 10;
float const CONFIDENT_LV = 10;
int const OFFSET = 10;
haha(MAX_AL, CONFIDENT_LV, OFFSET);
}
void testBind()
{
//boost::accumulators::accMeanStDv<float> accMSD;
bindClass bc;
float a = 3;
testArg(boost::bind<int>(adaptSR<int>, _1, _2, _3) );
testArg(boost::bind<int>(adaptSR<float>, _1, _2, _3, a) );
testArg(boost::bind<int>(adaptSR<bindClass>, _1, _2, _3, bc ));
testArg(boost::bind<int>(adaptSR<bindClass>, _1, _2, _3, boost::cref(bc) ));
}
|