This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]