|
Boost Users : |
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-11 15:52:09
AMDG
James Sutherland wrote:
> How would I take "f3" and bind one argument? Something like:
>
> F2arg f2 = bind<double>( f3, _2, x2 ); // bind x2 to second argument
> of f3...
f3 takes 3 arguments, so you need to pass a third argument to bind.
F2arg f2 = bind<double>( f3, _1, x2, _2);
f2(5, 6) // calls f3(5.0, x2, 6.0)
In Christ,
Steven Watanabe
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