Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-03-03 13:01:07


>> Yes, and I see nothing bad with it. Shared_ptr does precisely the same,
>> and since this cleanup function is intended to do the same as
>> shared_ptr's deleter does, I don't see why would the interface have to
>> differ.

thread_specific_ptr was more or less intended to provide a C++ equivalent to
pthread_setspecific, and the POSIX interface associates a single destructor
function to a TSD slot. It's technically possible to emulate shared_ptr, but
is there a reason for that?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk