This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::string allocator
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.