Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-07-09 17:40:19


From: "Mac Murrett" <mmurrett_at_[hidden]>

> This won't solve the problem of:
>
> struct C
> {
> foo();
> };
>
> vector<shared_ptr<C> > v;
> ...
> for_each(v.begin(), v.end(), mem_fun(&C::foo));
>
> ... or am I missing something?

Perhaps the fact that boost::mem_fun already works with boost::shared_ptr?

-Dave


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