Article View: comp.std.c++
Article #2020auto_ptr
From: Frode Nilsen
Date: Sun, 24 Sep 1995 06:04
Date: Sun, 24 Sep 1995 06:04
21 lines
1056 bytes
1056 bytes
I don't get this auto_ptr::reset() shall not delete it's object what shall then happen in void operator=(auto_ptr&) ? The standard says it shall use reset(), and then you will get a lost pointer. (The old value). Could someone give a simple example on how auto_ptr is intended to be used? Is the updates to the April draft available somewhere? Thanks. Frode [ 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:
<442sdo$kd4@engnews2.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamageShow 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: 24 Sep 1995 06:04:40 GMT Organization: ? Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <442sdo$kd4@engnews2.Eng.Sun.COM> Reply-To: froden@interlink.no NNTP-Posting-Host: taumet.eng.sun.com Content-Type: text X-Newsreader: Forte Free Agent 1.0.82 Content-Length: 365 Originator: clamage@taumet