Boost logo

Threads-Devel :

Subject: Re: [Threads-devel] Comiling Thread Library
From: Anthony Williams (anthony_at_[hidden])
Date: 2009-02-01 15:35:24


At Sun 01 Feb 2009 17:21:41 UTC, "vicente.botet"
<vicente.botet_at_[hidden]> wrote:

> ----- Original Message -----
> From: "Anthony Williams" <anthony_at_[hidden]>
> To: <threads-devel_at_[hidden]>
> Sent: Saturday, January 31, 2009 10:15 AM
> Subject: Re: [Threads-devel] Comiling Thread Library
>
>
>>
>> At Sat 31 Jan 2009 08:29:00 UTC, "vicente.botet"
>> <vicente.botet_at_[hidden]> wrote:
>>
>>> From: "Anthony Williams" <anthony_at_[hidden]>
>>>> The problem is the move function. It needs to be reverted to:
>>>>
>>>> boost::detail::thread_move_t<boost::thread>
>>>> move(boost::detail::thread_move_t<boost::thread> t)
>>>> {
>>>> return t;
>>>> }
>>>>
>>>
>>> Hi,
>>> Has this been included on the release 1.38?
>>
>> No. I thought I had, but a quick check on the release branch indicates
>> still has the old version. Drat.
>
>
> Hi,
>
> I see on the release and truck branches of the "move.hpp" file the
> same thing.
>
> #ifndef BOOST_NO_SFINAE
> template<typename T>
> typename
> enable_if<boost::is_convertible<T&,detail::thread_move_t<T> >, T
> >::type move(T& t)
> {
> return T(detail::thread_move_t<T>(t));
> }
> #endif
>
> template<typename T>
> detail::thread_move_t<T> move(detail::thread_move_t<T> t)
> {
> return t;
> }
>
> What is wrong?

I didn't change the overload for boost::thread in
boost/thread/detail/thread.hpp

Anthony

-- 
Anthony Williams
Author of C++ Concurrency in Action | http://www.manning.com/williams
just::thread C++0x thread library   | http://www.stdthread.co.uk
Custom Software Development         | http://www.justsoftwaresolutions.co.uk
Just Software Solutions Ltd, Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK

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