Topic: reference counting auto_ptr
Author: Arjen van Rhijn <arjen@elektron.its.tudelft.nl>
Date: 2000/08/28 Raw View
I was wondering why the committee did not accept a reference counting
version of the auto_ptr class in the standard. It seems to me that this
way you can use auto_ptr_rc in containers. For the standard auto_ptr,
the problem is that copies are not equivalent and that was why this sort
of thing was prohibited in version 3. With reference counting, data is
shared and it can be used in containers and functions that copy
elements. I think there are a lot of situations where a container with
auto_ptr_rc's would be useful.
Arjen
---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Bill Wade <wrwade@swbell.net>
Date: Thu, 31 Aug 2000 15:18:26 GMT Raw View
Arjen van Rhijn <arjen@elektron.its.tudelft.nl> wrote in message
news:39A966EE.7479E4F2@elektron.its.tudelft.nl...
> I was wondering why the committee did not accept a reference counting
> version of the auto_ptr class in the standard.
I think they got worn out trying to get auto_ptr right. I hear that they
may be close to wrapping it up.
boost has some reference counting pointers that you might find interesting.
---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Stephen Clamage <stephen.clamage@sun.com>
Date: Thu, 31 Aug 2000 16:03:28 GMT Raw View
On Mon, 28 Aug 2000 22:02:41 GMT, Arjen van Rhijn
<arjen@elektron.its.tudelft.nl> wrote:
>I was wondering why the committee did not accept a reference counting
>version of the auto_ptr class in the standard.
The answer is in the FAQ list for this newsgroup.
---
Steve Clamage, stephen.clamage@sun.com
---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html ]