This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::string allocator
- From: "Stefan Olsson" <stefan at garcio dot com>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 06 Mar 2006 20:38:54 +0100
- Subject: Re: std::string allocator
- References: <440C63A8.6040509@suse.de>
Hi Paolo,
sorry for the false alarm - yes, a full rebuild shows that it does use the correct allocator.
Brgds
----- Original Message -----
Paolo Carlini wrote:
> Stefan Olsson wrote:
>
> >Hi Paolo,
> >
> >well, it doesn't seem that way - or else I'm doing something really wrong/wierd. I did the _very_ ugly test of adding a printf( "%d ", __n * sizeof(_Tp)) in the allocate (line 660 something) method of mt_alloc and it doesn't show up on strings - it does report usage on all other types (vectors, lists etc...).
> >
> >
> I would suggest doing a clean rebuild of the library after adding the
> printf, or much better ;) using the debugger on a library built passing
> CXXFLAGS="-O0 -g3". The calls are definitely there and could not be
> otherwise, really.
>
> Paolo.
>