Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-05-04 08:21:03


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.





Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk