🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

auto_ptr

#2015
From: Frode Nilsen
Date: Fri, 22 Sep 1995 15:13
22 lines
1308 bytes
Hi, I am new here so please be patient

1. Regarding the X* auto_ptr::reset( X* p = 0 ) member in the draft
c++ standard.
Shouldn't that do a delete on the old object auto_ptr is holding the
pointer for?
The standard doesn't requiere such an effect, but without this the
operator=(auto_ptr&) will cause a lost pointer.

Have I missed something or?

2 .  Does there exist any update to the April DRAFT somewhere online?

3.  Does the class definitions that are included in the draft exist in
source somewhere?

Thanks for any help


[ 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: <43sdp0$14f@henry.interlink.no>
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage
From: froden@interlink.no (Frode Nilsen)
Newsgroups: comp.std.c++
Subject: auto_ptr
Date: 22 Sep 1995 15:13:48 GMT
Organization: InterLink AS, Trondheim, Norway
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <43sdp0$14f@henry.interlink.no>
Reply-To: froden@interlink.no
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
X-Nntp-Posting-Host: trh-ppp3.interlink.no
X-Newsreader: Forte Free Agent 1.0.82
Content-Length: 531
X-Lines: 18
Originator: clamage@taumet