Article View: comp.std.c++
Article #3980Re: sample auto_ptr template
From: john (j.d.) hickin
Date: Wed, 10 Apr 1996 14:56
Date: Wed, 10 Apr 1996 14:56
20 lines
1604 bytes
1604 bytes
|> What you can do is design your code so that you know who owns each object when. |> The auto_ptr template can help you implement such designs safely. If you |> cannot design your code to work with auto_ptr you probably need garbage |> collection of some form. I have no problem with this approach which is, in fact, forced on one by the sample implementation, because it is no longer possible to determine ownership through a member function. -- John Hickin Nortel Technology, Montreal, Quebec (514) 765-7924 hickin@nortel.ca [ 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 ]
Technical Details
Message-ID:
<4kgc58$q5e@bmtlh10.bnr.ca>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: "john (j.d.) hickin" <hickin@bnr.ca> Newsgroups: comp.std.c++ Subject: Re: sample auto_ptr template Date: 10 Apr 1996 14:56:42 GMT Organization: Bell Northern Research Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <4kgc58$q5e@bmtlh10.bnr.ca> NNTP-Posting-Host: taumet.eng.sun.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Nntp-Posting-Host: bmtlh520.bnr.ca X-Mailer: Mozilla 1.1 (X11; I; HP-UX A.09.05 9000/715) X-Url: news:gregorDpFBCt.A5@netcom.com X-Lines: 13 Content-Length: 540 Originator: clamage@taumet