11 Jul
2008
11 Jul
'08
7:52 p.m.
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