This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Patch to replace malloc() with new in V3
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 14 Nov 2003 13:21:03 -0800
- Subject: Re: Patch to replace malloc() with new in V3
- References: <200311141541.42971.stephen.webb@bregmasoft.com>
On Fri, Nov 14, 2003 at 03:41:42PM -0500, Stephen M. Webb wrote:
>
> Attached is a patch to replace use of malloc()/free() in the library with
> new/delete (where appropriate).
I don't think this is conforming. The standard doesn't require that it
use malloc(), but I think that it does not allow it to use operator new.
If these functions' semantics were affected by replacing operator new,
it would have to say so.
Apologies for not speaking up earlier.
Nathan Myers
ncm-nospam@cantrip.org