Topic: Smart pointers revisited: corrections
Author: tylo@start.no (T. Lovset)
Date: Mon, 26 Jan 2004 00:52:05 +0000 (UTC) Raw View
In my previous thread I started "Smart pointers revisted: 3
suggestions", there was two important typos:
< Only if it is a use-relation, it should be converted to a smart ptr,
should be:
> Only if it is a has-relation, it should be converted to a smart ptr,
< Note that new1_handle::reset() could also set p__=0, to make it more
safe
should be:
> Note that new1_handle::release() could also set p__=0, to make it more safe
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]