
6 Jan
2008
6 Jan
'08
6:24 p.m.
Hello, Currently one cannot create a thread_specific_ptr<void> as the return type of thread_specific_ptr<void>::operator* would be void&. So is there any technical reason that we cannot do the same trick as with shared_ptr? i.e. have operator* return a thread_specific_ptr_traits<T>::reference, which would be void in the thread_specific_ptr_traits<void> specialisation, allowing client code to compile so long as operator* is not called. I'd be happy to put a patch together (against the SVN trunk, I assume?). Kind regards, Edd