|
Boost Users : |
From: Jonathan Biggar (jon_at_[hidden])
Date: 2005-02-11 16:02:30
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<void(double)> f2(boost::bind(f, 1, _1));
f2(1.0);
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<void(int,double)> f4(/*what goes in here?*/);
f4(1, 1.0);
Or am I stuck writing the function mapping by hand?
-- Jon Biggar Levanta jon_at_[hidden]
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