Still improving! (Was: Re: [PATCH] Avoid strtok for thread safety)

Paolo Carlini pcarlini@unitus.it
Wed Nov 27 09:26:00 GMT 2002


Nathan Myers wrote:

>Same either way.  Storing std::string instances instead of pointers
>would fix it.  I don't know why Benjamin doesn't want to use them,
>unless there's some include-loop problem nobody wants to tackle.
>
Well, we should really ask Benjamin...

Some time ago, in private mail he alluded to some troubles with memory 
leaks and static allocation of strings, which led him to resort to C 
strings (std::strings were in fact used, in the first implementation!). 
If you browse a bit the repository you will learn, I think, that this 
happened exactly when Benjamin started to systematically fight memory 
leaks with Valgrind.

Benjamin?

Ciao, Paolo.
 



More information about the Libstdc++ mailing list