From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2006-04-07 08:28:51
Felipe Magno de Almeida wrote:
> And, IMO, the interface of thread_specific_ptr leads to believe that
> it is safe to use it that way.
What specifically made you believe so?
Thread safety can only be stated after an object has been created.
And the thread_specific_ptr is no exception.
To get platform independent behavior the ptr has to be declared globally.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk