Article View: comp.std.c++
Article #2769Re: Array Initialization
From: Joe Buck
Date: Wed, 29 Nov 1995 01:05
Date: Wed, 29 Nov 1995 01:05
25 lines
1857 bytes
1857 bytes
Rohan Lenard asks: >> Why is there no auto_array_ptr in the DWP ? Is it an omission or a mistake ? Nathan Myers <ncm@netcom.com> writes: >Neither. The feeling in the committee was that that would be too close to >vector<>. I.e. when you think you want an auto_array_ptr, consider using >a vector<> instead. In my humble opinion, this is a mistake; vector<> is a far bigger chunk of code than auto_array_ptr<> and supports functionality beyond what a natural auto_array_ptr would supply (the ability to extend the array by adding more at the end, iterators, etc). If there isn't a standard one, everyone will roll their own. Or worse: users will use auto_ptr inappropriately since on many implementations delete will work OK on arrays of objects that don't have destructors. -- -- Joe Buck <jbuck@synopsys.com> (not speaking for Synopsys, Inc) Anagrams for "information superhighway": Enormous hairy pig with fan A rough whimper of insanity [ 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:
<49gb4c$h5o@hermes.synopsys.com>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageReferences:
<30B1CB7E.41C67EA6@ecid.cig.mot.com> <48t9t7$5c2@engnews1.eng.sun.com> <199511240018.AA20581@hercules.iassf.easams.com.au> <30BA28C5.50C6@netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: jbuck@Synopsys.COM (Joe Buck) Newsgroups: comp.std.c++ Subject: Re: Array Initialization Date: 29 Nov 1995 01:05:00 GMT Organization: Synopsys Inc., Mountain View, CA 94043-4033 Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <49gb4c$h5o@hermes.synopsys.com> References: <30B1CB7E.41C67EA6@ecid.cig.mot.com> <48t9t7$5c2@engnews1.eng.sun.com> <199511240018.AA20581@hercules.iassf.easams.com.au> <30BA28C5.50C6@netcom.com> NNTP-Posting-Host: taumet.eng.sun.com Content-Type: text X-Nntp-Posting-Host: deerslayer.synopsys.com Content-Length: 958 X-Lines: 21 Originator: clamage@taumet