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
> [...]
> 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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at