Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2002-07-09 14:07:46


"Peter Dimov" <pdimov_at_[hidden]> wrote in message
news:004c01c22777$4e1389d0$1d00a8c0_at_pdimov2...
> [...]
> template<class T, class R, class U> function<R> operator->*(shared_ptr<T>
> const & p, R (U::*pmf) ())
> {
> return bind(pmf, p);
> }
> [...]

Very nice. Just two questions...Paul, can you create the additional
overloads with the preprocessor, and Peter, would you object to this
perhaps going into a separate file but distributed with shared_ptr,
for people like me who really like operator->*? Maybe something
like: "shared_ptr2member.hpp"? I realize you probably don't want to
introduce a dependency on bind() and function<> to 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