Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-11 19:24:06


AMDG

James Sutherland wrote:
> Or, slightly more generally, if we want to bind other boost::function
> objects and not POD:
>
> typedef function< double(T) > Func;
> Func func1, func2;
> ...
> F0arg f = bind( ret<double>(_1*_2)(func1,func2) );
>
> Any ideas here?

Does this work?
using namespace boost::lambda;
F0arg f = bind(protect(_1*_2), bind(func1), bind(func2));

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