Article View: comp.std.c++
Article #3026auto_ptr again
From: Eugene Radchenko
Date: Wed, 17 Jan 1996 20:21
Date: Wed, 17 Jan 1996 20:21
22 lines
1890 bytes
1890 bytes
Hi!
I would like to suggest returning to the definition of auto_ptr. The fact
is, in current form it is almost unusable for most things due to its
underlining concept of a single strict ownership. Actually, we need
multiple-instance auto_ptr. If, as I suspect, its inclusion was prevented
by the problem of efficiently allocating the counter in ref.counted
pointer, then we could parameterize auto_ptr WRT not only the type, but
allocator as well. Also, we could use doubly-linked list instead. And
anyway, it is the implementation problem!
Cheers Genie
--
--------------------------------------------------------------------
Eugene V. Radchenko Research associate, Computer Chemistry
E-mail: eugene@qsar.chem.msu.su Fax: +7-(095)939-0290
Ordinary mail: Chair of Organic Chemistry, Department of Chemistry,
Moscow State University, 119899 Moscow, Russia
***************** Disappearances are deceptive *******************
---
[ 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:
<ADxYD_mKQD@qsar.chem.msu.su>Path:
arc1-ca.pugleaf.net!fido.asd.sgi.com!austernShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern From: "Eugene Radchenko" <eugene@qsar.chem.msu.su> Newsgroups: comp.std.c++ Subject: auto_ptr again Date: 17 Jan 1996 12:21:10 PST Organization: Lab. of Org.Synth., MSU Approved: austern@isolde.mti.sgi.com Message-ID: <ADxYD_mKQD@qsar.chem.msu.su> NNTP-Posting-Host: isolde.mti.sgi.com X-Original-Date: Wed, 17 Jan 1996 14:08:43 +0300 (MSK) X-Mailer: dMail [Demos Mail for DOS v1.23] X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUBMP1aU0y4NqrwXLNJAQHa8gIAm+t3JRSkjYX5dp2eeVT/M6PX0qSoKGt0 pwdHMpsehMPG8ipzVrVT+UmD5nUGMyhd5avtSQMLuGNKhut8htQ1Tg== =KYBH Originator: austern@isolde.mti.sgi.com