[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: off-topic: need help with egcs 1.1.2 internal compiler error
From:       Steffen Hansen <stefh () mip ! sdu ! dk>
Date:       1999-05-31 11:59:37
[Download RAW message or body]

On Mon, 31 May 1999, Waldo Bastian wrote:

> > If you make your own memory management. For example by packing objects
> > together in an array.
> 
> Shouldn't you overload operator 'delete' in that case?

Not if want to use your objects with the normal allocation routines also.
The STL vector template for example uses destruct() to call destructors
for each object in the vector before the vector itself is deleted.

greetings,
--------------
Steffen Hansen                              |
email: stefh@mip.sdu.dk, stefh@imada.sdu.dk,|  
       hansen@kde.org                       | ABC...VWXKZ :)
URL:   http://www.mip.sdu.dk/~stefh         | 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic