4 Aug
2010
4 Aug
'10
9:46 a.m.
On 08/04/2010 03:02 AM, Mathias Gaunard wrote:
2) Then, it is suggested furthermore that if foo() is a (simple?) nested function, say T=double and,
double foo(double x) { return 2*x; }
then one should do 'functional composition', i.e. create the functor for the previous point 1) by
boost::bind(std::multiplies<double>(),2,_1)
Replace all that by just 2*_1
Does it work? I was not able to: error: no match for ‘operator*’ in ‘2 * boost::lambda::<unnamed>::_1’ Regards Gaetano Mendola