Boost logo

Boost Users :

Subject: Re: [Boost-users] Compilation error trying to pull in Boost::threads header file
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-09-10 18:14:32


Le 10/09/12 20:04, Sunil Matta a écrit :
> Error compiling a program trying to use Boost::thread. Nothing special
> on the offending line, simply an include of thread.hpp
>
> Fedora 17
> gcc 4.7
> Boost: 1_47_0
>
> /usr/local/lib/Boost/boost_1_
> 47_0/boost/thread/pthread/thread_data.hpp:36:41: error: use of deleted
> function
> ‘boost::shared_ptr<boost::detail::tss_cleanup_function>::shared_ptr(const
> boost::shared_ptr<boost::detail::tss_cleanup_function>&)’
>
>

Hi,

I'm seeing this code in shared_ptr.hpp

template<class Y>
#if !defined( BOOST_SP_NO_SP_CONVERTIBLE )

shared_ptr( shared_ptr<Y> const & r, typename
boost::detail::sp_enable_if_convertible<Y,T>::type =
boost::detail::sp_empty() )

#else

shared_ptr( shared_ptr<Y> const & r )

#endif
: px( r.px ), pn( r.pn ) // never throws
{
}

I don't know ho wBoost is installed on your platform, but it seems that
there is an issue there.
> 1) Seems like boost is trying to pull in boost:shared_ptr. Shouldnt
> this be pulling this from the std namespace now ?
If you follow your reasoning, you should been using std::thread ;-)

Best,
Vicente


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net