Modify

Opened 11 years ago

Closed 7 years ago

#868 closed Patches (fixed)

[thread] thread_specific_ptr::element_type ?

Reported by: gmsb Owned by: Anthony Williams
Milestone: Component: thread
Version: None Severity: Problem
Keywords: Cc:

Description

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>(

Attachments (0)

Change History (6)

comment:1 Changed 11 years ago by Anthony Williams

Owner: changed from glassfordm to Anthony Williams
Severity: Showstopper
Status: assignednew

comment:2 Changed 11 years ago by Anthony Williams

Severity: ShowstopperProblem

comment:3 Changed 11 years ago by Anthony Williams

Status: newassigned

comment:4 Changed 10 years ago by Daryle Walker

Component: Nonethread

comment:5 Changed 8 years ago by Steven Watanabe

I think this would be useful, because it would allow Boost.Lambda to deduce the result of dereferencing a thread_specific_pointer.

comment:6 Changed 7 years ago by anonymous

Resolution: Nonefixed
Status: assignedclosed

Fixed on trunk

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Anthony Williams.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.