Hello Gernot,
On 1/24/2012 3:50 PM, Gernot Frisch wrote:
>
> beware of strtok. It's not thread safe (will store a pointer internally)
> and will modify the buffer, so you mostly will need a copy of it.
> Write your own splitter that returns a std::vector<std::string> instead:
>
That's actually incorrect, at least if we talk about MSVC runtimes. All
multithreaded runtimes of VC that I can remember store their internal
pointer in a TLS slot and recent versions of MSVC don't even offer a
single-threaded runtime anymore.
--
S