
23 Feb
2010
23 Feb
'10
10:59 a.m.
To be able to choose one of them at runtime :-) ... I'm looking for something similar to boost::function<>, but which doesn't erase all type information.
Lets assume you've got 2 different functions with the same signature: void f1(int i, double d); void f2(int i, double d); What do you loose by putting them into boost::function<void(int, double)>?