Re: STL, memory allocation, and cleanup (gcc 3.0?)
On Mon, Nov 19, 2001 at 10:49:17AM +0100, Wichert Akkerman wrote:
> Previously email@example.com wrote:
> > #include <stdio.h>
> > #include <stdlib.h>
> This isn't proper c++, you need to use cstdio and cstdlib as well
> as the std namespace.
In the 2.95.4 headers, the cstdio is a simple wrapper. What is the
motive for using it?
> > #define free _free
> > #define malloc _malloc
> > #define realloc _realloc
> You're better of passing a custom allocator to the templates
> instead of playing tricks like this.
> /firstname.lastname@example.org This space intentionally left occupied \
> | email@example.com http://www.liacs.nl/~wichert/ |
> | 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0 2805 3CB8 9250 2FA3 BC2D |
> To UNSUBSCRIBE, email to firstname.lastname@example.org
> with a subject of "unsubscribe". Trouble? Contact email@example.com