Article View: gnu.gcc.help
Article #42357Re: "delete" problem in gcc
From: William E. Jackson
Date: Thu, 14 Dec 1995 00:00
Date: Thu, 14 Dec 1995 00:00
6 lines
777 bytes
777 bytes
> When I free space with "delete [size] theObject;", g++ > says that I use an "anachronistic" size argument for operator "delete". Try "delete [] theObject;". You no longer need to specify the size, but the compiler still needs to know whether you are deleting an individual object or an array of objects.
Technical Details
Message-ID:
<9512140206.AA05251@bluegrn.COM>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
wjackson@bluegrn.COM (William E. Jackson)Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,4e4f98ae69eaa083 X-Google-Attributes: gid11318c,public From: wjackson@bluegrn.COM (William E. Jackson) Subject: Re: "delete" problem in gcc Date: 1995/12/14 Message-ID: <9512140206.AA05251@bluegrn.COM> X-Deja-AN: 121854800 distribution: gnu sender: daemon@cis.ohio-state.edu references: wjackson@bluegrn.COM (William E. Jackson) organization: GNUs Not Usenet newsgroups: gnu.gcc.help