Article View: comp.std.c++
Article #2716Re: Deleting Pointers To Const
From: Fergus Henderson
Date: Thu, 23 Nov 1995 03:05
Date: Thu, 23 Nov 1995 03:05
21 lines
1489 bytes
1489 bytes
"Alexander J. Oss" <alex.oss@films.com> writes: >I've looked in sections 3.7.3.2 and 5.3.5 of the April 28th draft and didn't >see anything concerning the deletion of pointers to const (except that you >shouldn't use already-deallocated modifiable lvalues). That's right - it's OK to delete pointers to const. It used to be illegal, but the committee changed this at the November meeting last year. >I get an error saying "Cannot convert 'const int *' to 'void *' in function >Holder<int>::~Holder()" using TC++ 4.5 for the following code: Your compiler is out-of-date. Time to get a new one ;-) -- Fergus Henderson WWW: http://www.cs.mu.oz.au/~fjh fjh@cs.mu.oz.au PGP: finger fjh@128.250.37.3 [ 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:
<9532712.9234@mulga.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageReferences:
<NEWTNews.816616683.26228.alex@alexpc.films.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson) Newsgroups: comp.std.c++ Subject: Re: Deleting Pointers To Const Date: 23 Nov 1995 03:05:14 GMT Organization: Computer Science, University of Melbourne, Australia Sender: news@cs.mu.OZ.AU (CS-Usenet) Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <9532712.9234@mulga.cs.mu.OZ.AU> References: <NEWTNews.816616683.26228.alex@alexpc.films.com> NNTP-Posting-Host: taumet.eng.sun.com Originator: clamage@taumet