Boost logo

Boost :

From: Philippe Vaucher (philippe.vaucher_at_[hidden])
Date: 2006-09-08 02:30:00


>
> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk