digitalmars.D.learn - Call destructor before memory is freed.
- Ty Overby (5/5) Feb 10 2014 I'm writing a freelist for storing structs in which memory is
- =?UTF-8?B?QWxpIMOHZWhyZWxp?= (3/7) Feb 10 2014 o.destroy()
I'm writing a freelist for storing structs in which memory is kept around after it is explicitly "freed" by the client. I'm using std.conv.emplace with manual memory management, but I need to call the destructor on the memory right when the caller tries to free.
Feb 10 2014
On 02/10/2014 02:02 PM, Ty Overby wrote:I'm writing a freelist for storing structs in which memory is kept around after it is explicitly "freed" by the client. I'm using std.conv.emplace with manual memory management, but I need to call the destructor on the memory right when the caller tries to free.o.destroy() Ali
Feb 10 2014