22 Dec
2006
22 Dec
'06
5:53 p.m.
gast128 wrote:
Dear all,
I just typed something like this:
void Foo(void (I::*pmf)()) { boost::shared_ptr<I> ptr(new I); (ptr->*pmf)(); }
but this does not compile. Is there are rationale behind this? I have no experience in ovelroading operator->*, so maybe this question arises from ignorance.
It appears that operator->* is not overloaded for shared_ptr. You can achieve the same thing by doing: ((*ptr).*pmf)(); David