This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: warning with gcc 2.95.1


> Date: Wed, 18 Aug 1999 14:37:35 +0200
> From: =?iso-8859-1?Q?Jean=2DFran=E7ois?= MORCILLO 
> 	<Jean-Francois.Morcillo@steria.fr>

> the code look like this :
> void my_delete(void *adr)
> {
>     //some stuff
>     ...
>     //free memory
>     delete adr ;
> }

> in the C++ Programming Lanhuage Third edition, le the prototype for
> operator delete is the same....

Wrong type, please ask how to a program in C++ type questions on
comp.lang.c++.

Try delete new char; or _any_ other type but void, above you use void.

delete new void; is invalid.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]