
8 Sep
2006
8 Sep
'06
6:30 a.m.
lexical_cast was NEVER thread safe to start -- not one word in the docs indicates that it is thread-safe, and the implementation clearly isn't because of several things that are used. So clients using lexical_cast from multiple threads should beware...
There's something I want to clear out, lexical_cast is reentrant and only uses "stacked" variables no ? It looks like the "thread-dangerosity" you're speaking about is like the same we would have by used two different stringstream objects in two different threads... Enlighten me if I missed something. Philippe