🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2348

Re: Ownership of objects

#2348
From: Greg Colvin
Date: Mon, 30 Oct 1995 07:33
25 lines
1535 bytes
In article <MATT.95Oct26011259@godzilla.EECS.Berkeley.EDU> matt@physics.berkeley.edu writes:

...
>
>And while I'm on the subject of reference counted pointers...  Does
>anyone know why an rc_ptr<X>, something analogous to auto_ptr<X>,
>isn't in the standard class library?  It's possible to write an rc_ptr
>class that's only a little bit more complicated than auto_ptr.

The standard has no reference counted pointer class because I and others
failed to convince the committee that it should, despite about two years
of effort. Personally, I prefer garbage collection to reference counting,
and reference counting to strict ownership, but strict ownership is the
most we could agree on for the standard, and even that agreement was hard
to arrive at. 

Greg Colvin
gregor@netcom.com


---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <gregorDH8MFn.FBE@netcom.com>
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!Matt
References: <46jbha$8bj@itchy.itsnet.com> <46m7ap$e30@oznet03.ozemail.com.au> <MATT.95Oct26011259@godzilla.EECS.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!Matt
From: gregor@netcom.com (Greg Colvin)
Newsgroups: comp.std.c++
Subject: Re: Ownership of objects
Date: 30 Oct 1995 07:33:28 GMT
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Approved: Matt@Austern
Message-ID: <gregorDH8MFn.FBE@netcom.com>
References: <46jbha$8bj@itchy.itsnet.com> <46m7ap$e30@oznet03.ozemail.com.au> <MATT.95Oct26011259@godzilla.EECS.Berkeley.EDU>
NNTP-Posting-Host: austern.hip.berkeley.edu