This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to replace malloc() with new in V3


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]