|
Boost : |
From: Douglas Gregor (gregod_at_[hidden])
Date: 2001-05-04 08:50:27
On Friday 04 May 2001 09:21 am, you wrote:
> From: "Jesse Jones" <jesjones_at_[hidden]>
>
> > I didn't read your earlier email carefully enough. All the examples
> > were of the second form:
> > bind(&X::f)(x);
> > and I didn't realize you were actually calling the method. It seems
> > obvious in retrospect. :-)
> >
> :-)
>
> The examples need work, granted, although there are examples of the first
> form:
>
> bind(&X::f, &x)();
> bind(&X::g, &x)(i);
>
> Here's an updated bind.hpp that works without workarounds on MSVC 6 (I
> hope.)
>
> If there's interest I can boostify and extend it to support more than one
> argument; it's a delicate situation, however, since lambda is on its way to
> boost. :-)
>
> --
> Peter Dimov
> Multi Media Ltd.
Lambda probably won't support the more broken compilers, however, so those
users will be stuck out to dry. I think both lambda and binders should be
included, even for the better compilers, because bind.hpp is bound to take a
lot less compile time.
Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk