
11 Jul
2008
11 Jul
'08
11:36 p.m.
AMDG James Sutherland wrote:
I tried the following (the simple case), and it would not compile:
<snip>
#include <boost/function.hpp> #include <boost/lambda/lambda.hpp> #include <boost/lambda/bind.hpp> int main() { using namespace boost::lambda; typedef boost::function< double() > F0arg; boost::function< double() > arg1, arg2; const double x1=1.1, x2=2.2; F0arg f = bind(protect(_1*_2), x1, x2); boost::function< double() > func1(f), func2(f); F0arg f2 = bind(protect(_1*_2), bind(func1), bind(func2)); }