Topic: strings, reference counting, and re-entrancy (also auto_ptrs)


Author: Richard See <Richard.See@vega.co.uk>
Date: 1997/09/01
Raw View
Steve Clamage wrote:

> Upon further reflection, I think a counted-pointer proposal should
> present a family of reference-counted auto_ptrs to satisfy the
> range of useful implementations of reference counting.

Agreed.

I think this same argument can be used to suggest an auto_ptr family, as
many potential uses of auto_ptr-like classes are mutually exclusive.
This would also allow the idioms that the classes represent to be named
in the classes, which should minimise misuse of the classes.
---
[ 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         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]