Boost logo

Boost Users :

Subject: Re: [Boost-users] Is there a patch for "thread copy constructor is accessible" BUG in solaris.
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2008-12-19 03:18:24


"Maruvekere, Praveen (Contractor)" <praveen_maruvekere_at_[hidden]>
writes:

> I have done the temporary fix to build the boost 1.37.0 as told in one
> of the solaris user forum thread
>
> http://forums.sun.com/thread.jspa?threadID=5326640
> <http://forums.sun.com/thread.jspa?threadID=5326640> for the below said
> error
>
> sun.compile.c++
> bin.v2/libs/thread/build/sun-5.9/release/link-static/threading-multi/thr
> ead.o
>
> "./boost/thread/detail/thread.hpp", line 344: Error, inaccessible:
> boost::thread::thread(boost::thread&) is not accessible from
> boost::move(boost::detail::thread_move_t<boost::thread>).
>
> 1 Error(s) detected.
>
> Do I need a patch to fix this?

Yes, but not the one suggested. That constructor is private for a
reason, and does not actually exist. It is a bug in the compiler that
requires it to exist, since it should not be chosen for copying a
temporary. If the optimization setting is low enough that the compiler
tries to call it then you'll get a link error.

I change the move function for thread from boost 1.35 in order to fix
an issue with gcc. I'll see what I can come up with. Please raise a
trac ticket so I don't forget, as I'm rather snowed under right now.

Anthony

-- 
Anthony Williams
Author of C++ Concurrency in Action | http://www.manning.com/williams
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

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