This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Use of malloc() in v3
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: stephen dot webb at bregmasoft dot com
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 11 Nov 2003 18:10:55 +0100
- Subject: Re: Use of malloc() in v3
- References: <200311111139.49121.stephen.webb@bregmasoft.com>
Stephen M. Webb wrote:
I've been stumbling across several places in libstdc++ where malloc() is used
instead of ::operator new(). Since I'm working on a platform that doesn't
supply malloc(), this inconveniences me.
I see. I'm not going into the technical details (first blush I agree that
replacing malloc with new is a good idea), only want to point out that
basically
we have malloc only in a couple of places for the generic locale model
(not for
the gnu locale model), in the malloc allocator ;), and in _Temporary_buffer,
__get_temporary_buffer and libsupc++.
The latter are the oldest and puzzle me most. Why malloc?
Paolo.