|
RE: Is intrusive_ptr the thing to use?: msg#00284lib.boost.user
>The only problem with it currently is that the >smart_class MUST be managed with smart_ptrs, >if you try to 'delete' it, it will try to delete >itself and crash. This seems like a problem that could be overcome through overloading the "delete" operator. Perhaps if you declared your delete operator as protected (or private), and then made the smart pointers you wanted to use friends? That would force you to use a specific set of smart pointer classes, but that doesn't sound like it would be a problem in your case. It's fixing the symptom rather than the disease, but is better than nothing. Turning runtime errors into compiletime errors is always a Good Thing. --Mark Storer Software Engineer Cardiff Software #include <disclaimer> typedef std::disclaimer<Cardiff> Discard; ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/EbFolB/TM ---------------------------------------------------------------------~-> 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: Is intrusive_ptr the thing to use?: 00284, Stephen Crowley |
|---|---|
| Next by Date: | matrix inside a matrix?: 00284, Stephen Crowley |
| Previous by Thread: | Re: Is intrusive_ptr the thing to use?i: 00284, Peter Dimov |
| Next by Thread: | Re: Is intrusive_ptr the thing to use?: 00284, Stephen Crowley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |