|
Boost Users : |
From: Wolfgang Meyer (Wolfgang.Meyer_at_[hidden])
Date: 2004-05-19 18:27:14
> I have tried:
> function0<void> funcs = (func1, func2);
> but this seems to execute only one of the two functions when it is called.
Here no lambda expression is involved. It is equivalent to "funcs = func2;".
> I have also tried:
> function0<void> funcs = (_1(), _2())(func1, func2);
Mhm, don't know whether this should work. However, the following
does:
function0<void> funcs = ( bind<void>(func1), bind<void>(func2) );
You just delay the call to the function objects, as you would do with a
function.
Wolfgang Meyer
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