🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42342

"delete" problem in gcc

#42342
From: Andrei B. Konstantinov
Date: Wed, 13 Dec 1995 00:00
12 lines
940 bytes
When I free space with "delete [size] theObject;", g++
says that I use an "anachronistic" size argument for operator "delete". 
When I compiled it with just "delete theObject", the memory fault error 
is generated every time I pass an object of the class that contains 
theObject as an argument to some function. 

Not that I cannot tolerate the warning about anachronistical arguments... 
Did anybody have any similar experience?

Thanks
Andrei
Technical Details
Message-ID: <Pine.HPP.3.91.951213154859.27851A-100000@bluejay.creighton.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,4e4f98ae69eaa083,start
X-Google-Attributes: gid11318c,public
From: "Andrei B. Konstantinov" <andrei@creighton.edu>
Subject: "delete" problem in gcc
Date: 1995/12/13
Message-ID: <Pine.HPP.3.91.951213154859.27851A-100000@bluejay.creighton.edu>
X-Deja-AN: 121757929
organization: Creighton University, Omaha Nebraska USA
content-type: TEXT/PLAIN; charset=US-ASCII
mime-version: 1.0
newsgroups: gnu.gcc.help