Boost logo

Boost Users :

From: edA-qa (edA-qa_at_[hidden])
Date: 2005-03-25 07:41:14


Eric Niebler wrote:
> void Do( shared_ptr<B> b )
> { b->Add( shared_from_this() ); }
> You can read about enable_shared_from_this in the shared_ptr docs.

Thank you, that's basically a more elegant form of the solution I was
going to do. I'll use that. :)

-- 
edA-qa mort-ora-y
Idea Architect
http://disemia.com/

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net