From 1060106458642704892
X-Google-Thread: f78e5,a10702d4a7db0a94
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news2.google.com!news3.google.com!news.glorb.com!newsfeed101.telia.com!nf02.dk.telia.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: usenet@aristeia.com (Scott Meyers)
Newsgroups: comp.std.c++
Subject: Re: Why no size_t to ::operator delete?
Date: Sun, 24 Dec 2006 16:42:12 GMT
Organization: Posted via Supernews, http://www.supernews.com
Lines: 19
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <12osad256lnh106@corp.supernews.com>
References: <12omt8jit7rl379@corp.supernews.com> <Eejjh.264755$Fi1.145186@bgtnsc05-news.ops.worldnet.att.net>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.demon.co.uk 1166978546 7535 158.152.254.254 (24 Dec 2006 16:42:26 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Sun, 24 Dec 2006 16:42:26 +0000 (UTC)
X-Original-To: std-c++@mailman.ucar.edu
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0
X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au
X-Path: comp-std-cpp-robomod!not-for-mail
X-Received: (from fjh@localhost)
	by mulga.csse.unimelb.edu.au (8.13.8+Sun/8.13.8/Submit) id kBOGgCx7023056;
	Mon, 25 Dec 2006 03:42:12 +1100 (EST)
X-Delivered-To: std-c++@mailman.ucar.edu
X-Authentication-Warning: mulga.csse.unimelb.edu.au: fjh set sender to devnull@stump.algebra.com using -f
X-Newsgroups: comp.std.c++
Xref: g2news2.google.com comp.std.c++:5152

Andrew Koenig wrote:
> Because if it did, what would it mean?

The same thing it means for a per-class deallocator:  please deallocate 
the chunk of memory pointed to by this pointer;  you can assume that the 
size indicated is correct for the chunk.  (Actually, now that I look for 
it, I can't find anything in the standard (at least not in 3.7.3.2 or 
5.3.5 or 12.5) that specifies the semantics of the size_t argument. 
I've always assumed it was the size of the chunk that should be 
deallocated if UB was to be avoided.)

Scott

---
[ 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://www.comeaucomputing.com/csc/faq.html                      ]



