|
Is intrusive_ptr the thing to use?: msg#00281lib.boost.user
I need an object managed through a shared_ptr to be able to pass itself (i.e., this) to another object which also expects a shared_ptr. Is there a preferred implementation technique for this when using the boost smart pointers? I think I've seen conversation in the past about deriving from boost::counted_base and calling shared_from_this(), but I think I also remember seeing comments to the effect that this is going away. OTOH, I know there's something called intrusive_ptr that's currently undocumented. Should I be using one of these approaches? If the answer is intrusive_ptr, are there docs? Should I roll my own? What's a Booster to do? -Greg Info: <http://www.boost.org> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl> Unsubscribe: <mailto:boost-users-unsubscribe@xxxxxxxxxxxxxxx> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Extended use of BGL File Dependency Example: 00281, Tom Matelich |
|---|---|
| Next by Date: | Lambda questions: 00281, Claus Rasmussen |
| Previous by Thread: | johnson algorithm, bug or feature?i: 00281, Ramón Casero Cañas |
| Next by Thread: | Re: Is intrusive_ptr the thing to use?: 00281, Stephen Crowley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |