[thread] thread_specific_ptr::element_type ?
Would the following patch be useful?
--- /boost_1_33_1/boost/thread/tss.hpp 2007-03-23 12:21:33.000000000 +0000
+++ /boost_1_33_1/boost/thread/tss.hpp.patched 2007-03-23 12:21:20.000000000 +0000
@@ -73,6 +73,8 @@
class thread_specific_ptr : private noncopyable
{
public:
+ typedef T element_type;
+
thread_specific_ptr()
: m_tss(new boost::function1<void, void*>(
boost::detail::tss_adapter<T>(
Change History
(6)
Owner: |
changed from glassfordm to Anthony Williams
|
Severity: |
→ Showstopper
|
Status: |
assigned → new
|
Severity: |
Showstopper → Problem
|
Resolution: |
None → fixed
|
Status: |
assigned → closed
|
I think this would be useful, because it would allow Boost.Lambda to deduce the result of dereferencing a thread_specific_pointer.