|
Boost : |
From: Gregory Dai (gregory.dai_at_[hidden])
Date: 2006-08-27 21:37:49
That's not true. std::basic_string<T> is not thread safe. I spent couple
months early this year to deal with that fact and finally came up with an
alternative string class with the same interface as std::string but does not
use the copy-on-write technique.
On 8/27/06, Alexander Nasonov <alnsn_at_[hidden]> wrote:
>
> Janek Kozicki wrote:
> > 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?
>
> local buffer == allocated on stack. It is thread safe.
>
> --
> Alexander Nasonov
> Project Manager at Akmosoft ( http://www.akmosoft.com )
> Blog: http://nasonov.blogspot.com
> Email: $(FirstName) dot $(LastName) at gmail dot com
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
-- Thanks, Greg
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk