Boost logo

Boost Users :

From: Sergey Ostrovskiy (sostrovskiy_at_[hidden])
Date: 2007-02-16 03:02:42


"Peter Dimov" <pdimov_at_[hidden]> wrote in message news:<005201c7515d$f2fbdff0$6607a8c0_at_pdimov2>...
> Sergey Ostrovskiy wrote:
>
> > Now I want to write something more difficult:
> >
> > apReports.push_back(make_report(boost::lambda::bind(&CItem::GetItemCount)*boost::lambda::bind((&CItem::GetItemBytes)));
>
> boost::lambda::bind(&CItem::GetItemCount, _1) *
> boost::lambda::bind((&CItem::GetItemBytes, _1)

Unfortunately this code produces errors during the compiling:

error C2678: binary '*' : no operator found which takes a left-hand operand of type 'const boost::lambda::lambda_functor<T>' (or there is no acceptable conversion)


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