From: David B. Held (dheld_at_[hidden])
Date: 2002-07-08 14:05:12


Consider:

class my_class { };

void (my_class::*foo)();

foo fighters;

boost::shared_ptr<my_class> p;

Now,

(p->*fighters)();

does not compile, but

(p.get()->*fighters)();

does. Is this by design, or possibly an oversight? The .get() form
works, but it would be nicer if shared_ptr handled the "native" form
automagically (yes, this is from real code...I'm not asking for
superfluous reasons...of course, the names have been changed to
protect the innocent).

Dave