Boost logo

Boost-Build :

Subject: [Boost-build] build 1_40_0 w/ SunStudio12 compiler failing
From: Bob Walters (bob.s.walters_at_[hidden])
Date: 2009-11-05 09:50:33

I've just attempted a build of the current (1_40_0) boost distribution
on a Solaris 10 machine, using the SunStudio12 compiler (cc). There
seems to be a problem with boost::thread which is related to this
compiler's lack of rvalue references.

My build process has been:
tar xzf boost_1_40_0.tgz
cd boost_1_40_0
export BOOST_ROOT=`pwd`
./bjam toolset=sun address-model=64

The error I'm receiving:

"./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
1 Error(s) detected.

    "CC" -library=stlport4 -xO4 -mt -erroff=%none -m64 -KPIC -DBOOST_ALL_NO_LIB=
/pthread/thread.o" "libs/thread/src/pthread/thread.cpp"

move() seems to rely on a copy constructor for its returned thread
when rvalue references aren't supported. There is no such

Aside from changing compilers, is there any work around for this?

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at