From 6527214724870553000
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,788fb706de8dacba
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-06-07 11:01:02 PST
Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: Ron Natalie <ron@spamcop.net>
Newsgroups: comp.std.c++
Subject: Re: Incomplete types
Date: Thu,  7 Jun 2001 18:00:17 GMT
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3B1FB81E.900FB0D9@spamcop.net>
References: <3B1F528F.B713765@akella.com>
X-Trace: mail2news.demon.co.uk 991936822 mail2news:16480 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Accept-Language: en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Date: Thu, 07 Jun 2001 13:19:16 EDT
Lines: 20
Xref: archiver1.google.com comp.std.c++:5844



"Igor A. Goussarov" wrote:

> can you explain why is deleting an object of an incomplete type
> considered an undefined behaviour rather then a compile-time error?

Got me.

>    Deleting of void* should be allowed regardless to the fact that void
> is never complete since it is known to have no destructor.

You can't new void's, it's not legal to destroy them at all.

---
[ 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.research.att.com/~austern/csc/faq.html                ]



