$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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