Newsgroups: comp.std.c++
From: Steve Clamage <stephen.clam...@sun.com>
Date: 2000/03/15
Subject: Re: Overloading new and delete
Stefan Lueer wrote: They are included. You can call any operator delete explicitly. > As far as I know, the new-operator can be overloaded and the > e.g. char *pArray = new (MyHandle) char [50]; ok > Why are delete-overloads not included in the ANSI C++ Standard? What is missing is a "placement delete" expression, as in your You can call the destructor and corresponding operator delete T* p = new (handle) T(args); For an array of objects, you have to write your own loop to -- --- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||