Boost logo

Threads-Devel :

Subject: Re: [Threads-devel] Comiling Thread Library
From: Anthony Williams (anthony_at_[hidden])
Date: 2009-01-30 12:48:49


At Wed 28 Jan 2009 16:03:41 UTC, Thomas Behler <T.Behler_at_[hidden]> wrote:

> i want to compile the boost libraries.
>
> Unfortunately i got the following error messages while compiling the
> thread library.
> "./boost/thread/detail/thread.hpp", line 344: Error:
> boost::thread::thread(boost::thread&) is not accessible from
> boost::move(boost::detail::thread_move_t<boost::thread>).
> 1 Error(s) detected
>
> My System:
> Sun OS 5.9, Solaris

Somebody else reported this on the boost.users list last month. I
changed the move overload to handle problems with gcc, and it broke
the Sun compiler.

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;
}

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