|
From: Ioannis V. <iv...@em...> - 2003-07-15 20:20:56
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Hossein Haeri > Sent: Tuesday, July 15, 2003 10:23 PM > To: dev...@li... > Subject: Re: [Dev-C++] overloading delete > > > Daniel, > > > I found another > > > > (from memory) it was: > > void* operator delete(_segment Seg, void* _based(void*) > BasePtr, void* > > Memory) > > > > the variable names are my own, but I think the types are > right. This is for > > segments. > > > > I really do not remeber if that's mentioned in the Standard, nor am I > in the mood of finding such a fine in it (needle in a haystack). The above are not standard compliant. The basic headers one can define void *operator new(size_t); void operator delete(void *); void *operator new[](size_t); void operator delete[](void *); The way how to do that is enough stuff in TC++PL, 10.4.11, 15.6, 19.4.5. But they are standard compliant. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |