Use of malloc() in v3
Paolo Carlini
pcarlini@unitus.it
Tue Nov 11 17:12:00 GMT 2003
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.
More information about the Libstdc++
mailing list