From: Jeff Garland (jeff_at_[hidden])
Date: 2006-08-27 10:29:35
Janek Kozicki wrote:
> Alexander Nasonov said: (by the date of Sat, 26 Aug 2006 21:27:23 +0000)
>> I recently commited the version 1.26 of lexical_cast.hpp
>> that optimizes many combinations of types.
>> How it works:
>> The lexical_cast reserves a local buffer for bool, char, wchar_t
>> and other integral types.
> great, but is this code thread safe? Think about several different
> threads calling lexical_cast<> simultaneously. Will this local buffer
> get mangled in such situation?
The current lexical_cast makes no claim of thread safety so why would you
expect an optimization to?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk