Boost logo

Threads-Devel :

From: Daniel (danne_esset_at_[hidden])
Date: 2008-03-14 16:48:37


I do not know if this really is the right place to post it but I had compilation problems with thread_specific_ptr and I found a solution to it. When compiling the thread_specific_ptr with visual studio 2008 I get an error when compiling the release function saying it can't convert from 0 (int) to boost::shared_ptr<boost::detail::tss_cleanup_function>().

class thred_specific_ptr {
...
..

  T* release()
        {
            T* const temp=get();
         detail::set_tss_data(this,0,0,false); //was this
//change to: detail::set_tss_data(this,boost::shared_ptr<boost::detail::tss_cleanup_function>() ,0,false);
            return temp;
        }

/Daniel Svensson



Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk