Boost C++ Libraries: Ticket #66: thread specific pointer behavior change https://svn.boost.org/trac10/ticket/66 <pre class="wiki">The thread specific pointer class seems to imply that only heap allocated pointers are eligible for use in the thread specific pointer (i.e. both reset and cleanup use delete object). Is it possible to make the cleanup action declarable in the template such that we have someting along the likes of: template &lt;typename T, typename Cleanup&gt; class ... { reset(T *new) { ... cleanup(cur);.... } cleanup(void *cur) { Cleanup c; c(cur); } } or some such. This would allow the use of say reference counted or even stack objects to be used in thread local pointers. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/66 Trac 1.4.3 Roland Schwarz Sun, 01 Oct 2006 18:15:42 GMT status changed https://svn.boost.org/trac10/ticket/66#comment:1 https://svn.boost.org/trac10/ticket/66#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=541730 I don't think anything than heap located pointers should be allowed. An useful counter example would be interesting. </pre> Ticket