Re: new/delete overloading, why?

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Fri, 20 Aug 2010 22:00:00 +0200

lör 2010-08-21 klockan 07:02 +1200 skrev Robert Collins:

> it was to stop crashes with code that had been cast and was freed with
> xfree(); if you don't alloc with a matching allocator, and the
> platform has a different default new - *boom*.

Allocating with new and freeing with free() is a coding error in all
books.

> There may be nothing like that left to worry about now.

I sure hope not.

Regards
Henrik
Received on Fri Aug 20 2010 - 20:00:04 MDT

This archive was generated by hypermail 2.2.0 : Sat Aug 21 2010 - 12:00:04 MDT