From 8010469267878216720
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,839fa42e97baea86
X-Google-Attributes: gidf78e5,public
From: Hyman Rosen <hymie@prolifics.com>
Subject: Re: Placement new[] Compiler Depenent?
Date: 1998/11/21
Message-ID: <3655B549.C495A9C6@prolifics.com>#1/1
X-Deja-AN: 414122413
Content-Transfer-Encoding: 7bit
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <eDcSHHgdulIC-pn2-e3Hcgbrpl1Vl@eir.stiscan.com> <3653144D.8A863861@acm.org> <lgH42.5353$0h.17515725@news.rdc1.wa.home.com> <365395A5.CABB481B@acm.org>
X-Original-Date: Fri, 20 Nov 1998 13:30:33 -0500
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: izvestia.its.unimelb.edu.au 911628167 345 128.250.29.16 (21 Nov 1998 06:02:47 GMT)
Organization: Prolifics
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANlZXduEDnX0m9pzZAQFWDAF7BkPLhMlCbdU9+kj5dx1JsHqhy/eJnuae 4TyvhfYFo7gSGzdfeGgQOmRJlh+8pe2G =EOOG
Mime-Version: 1.0
NNTP-Posting-Date: 21 Nov 1998 06:02:47 GMT
Newsgroups: comp.std.c++

Pete Becker wrote:
> He doesn't need to know. The runtime system asks for the memory that it
> needs, including any "extra" storage space. Be sceptical when testing
> this: if the class that you're allocating doesn't have a destructor then
> no extra space is needed.

He does need to know if he's trying to allocate the memory outside of
operator new[], for use in a subsequent placement new.
---
[ 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    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



