|
Boost : |
From: Edd Dawson (lists_at_[hidden])
Date: 2008-01-06 13:24:15
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk