Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-02-21 07:33:54


From: "jkharris01" <john.harris_at_[hidden]>
> Should bind() be extended to include binding to member data? If it
> already allows convenient binding to member functions, wouldn't
> member data be a natural extension?

Probably a good idea. It's mem_fn that would be extended, but the effect
would be the same.

> Perhaps the operator() of the class resulting from such a bind would
> return a reference to the member data.

The main problem is the constness of that reference.


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