Date: Thu, 22 Jul 93 17:51:16 -0400 From: DJ Delorie To: stefan AT cs DOT ualberta DOT ca Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Anachronous delete. > 1. delete [_size_] _p-var_; > 2. delete _p-var_; > > I am using the first form in a program and gcc says: > > "warning: use of array size with vector delete is anachronistic" The correct syntax now is this: delete [] _p-var_; The compiler keeps track of the number of elements behind the scenes, so it doesn't care what you give it. The brackets are still needed to differentiate between this and a regular delete operation. DJ