Boost logo

Boost Users :

From: James Sutherland (James.Sutherland_at_[hidden])
Date: 2008-07-11 19:26:39


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

I tried the following (the simple case), and it would not compile:

int main()
{
   using namespace boost::lambda;
   typedef boost::function< double() > F0arg;
   const double x1=1.1, x2=2.2;
   F0arg f = bind(protect(_1*_2), bind(x1), bind(x2));
}


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