7 May
2004
7 May
'04
4:15 p.m.
Now it doesn't compile because (of course) Attr::Write is not a method of shared_ptr<Attr>.
Do I have to use boost's bind and mem_fn objects instead of std?
Yes; bind and mem_fn handle this problem (and quite a few others) automatically.
Why is this a problem? I thought std::mem_fn called the function through the -> operator, which 'should' work (but obviously doesn't). I would think this would only crop up through mem_fun_ref, but then you wouldn't have a container of shared_ptr<Attr>, but Attr. --Baffled --Mark Storer Senior Software Engineer Verity, Inc.