Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-05-13 11:52:21


From: "Douglas Gregor" <gregod_at_[hidden]>
> On Monday 13 May 2002 11:28 am, you wrote:
> > Yes, obviously. I forgot to mention signals cannot be passed by value.
> >
> > By now I do have a modified bind.hpp that does the neccessary
unwrapping,
> > it seems to work. Needs more testing though.
> >
> > Thomas
>
> I hadn't realized that bind didn't unwrap ref()/cref() for its first
> argument, and I'd really like to have this. (Hint, hint ;->)

Two options: special-case (again) ref(x) in bind, or make ref(f)(x, y)
invoke f(x, y), allowing ref() to be used with standard algorithms and
stateful function objects, as I originally envisioned.

What do you think? Will this break existing ref() uses?


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