
7 Apr
2006
7 Apr
'06
12:28 p.m.
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. Roland