$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-11 19:36:26
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));
}