Reverse of boost::bind?
I can use boost::bind to use a function that takes several arguments in
a context where it is passed fewer arguments:
void f1(int, double);
boost::function
Jonathan Biggar wrote:
I can use boost::bind to use a function that takes several arguments in a context where it is passed fewer arguments:
Is there something a way to do the reverse, which is to call a function that takes fewer arguments in a context where it is passed more arguments?
void f3(int);
boost::function
f4(/*what goes in here?*/);
bind(f3, _1)
f4(1, 1.0);
Jonathan
participants (2)
-
Jonathan Biggar
-
Jonathan Turkanis