Modify

Ticket #868 (closed Patches: fixed)

Opened 7 years ago

Last modified 4 years ago

[thread] thread_specific_ptr::element_type ?

Reported by: gmsb Owned by: anthonyw
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

Change History

comment:1 Changed 7 years ago by anthonyw

  • Owner changed from glassfordm to anthonyw
  • Status changed from assigned to new
  • Severity set to Showstopper

comment:2 Changed 7 years ago by anthonyw

  • Severity changed from Showstopper to Problem

comment:3 Changed 7 years ago by anthonyw

  • Status changed from new to assigned

comment:4 Changed 7 years ago by dlwalker

  • Component changed from None to thread

comment:5 Changed 5 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 4 years ago by anonymous

  • Status changed from assigned to closed
  • Resolution changed from None to fixed

Fixed on trunk

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.