Boost logo

Threads-Devel :

Subject: Re: [Threads-devel] Comiling Thread Library
From: Anthony Williams (anthony_at_[hidden])
Date: 2009-02-02 12:53:02


At Mon 02 Feb 2009 17:31:07 UTC, "vicente.botet"
<vicente.botet_at_[hidden]> wrote:

> ----- Original Message -----
> From: "Anthony Williams" <anthony_at_[hidden]>
> To: <threads-devel_at_[hidden]>
> Sent: Sunday, February 01, 2009 9:35 PM
> Subject: Re: [Threads-devel] Comiling Thread Library
>
>
>
>> I didn't change the overload for boost::thread in
>> boost/thread/detail/thread.hpp
>>
>
> Do you mean that
> #ifdef BOOST_HAS_RVALUE_REFS
> inline thread&& move(thread&& t)
> {
> return t;
> }
> #else
> inline thread move(detail::thread_move_t<thread> t)
> {
> return thread(t);
> }
> #endif
>
> should be
> #ifdef BOOST_HAS_RVALUE_REFS
> inline thread&& move(thread&& t)
> {
> return t;
> }
> #else
> inline detail::thread_move_t<thread>
> move(detail::thread_move_t<thread> t)
> {
> return thread(t);
> }
> #endif

Yes, exactly.

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