id summary reporter owner description type status milestone component version severity resolution keywords cc 4071 unique_lock fails with recent Sun Studio compilers stephen.clamage@… Anthony Williams "boost/thread/locks.hpp has conditional code applied to all Sun Studio compilers, but recent compilers don't produce the right result with the workarounds. The workarounds should be restricted to older compilers (a one-line change in two places). Here are the diffs: --- boost/thread/locks.hpp (revision 61052) +++ boost/thread/locks.hpp (working copy) @@ -214,7 +214,7 @@ unique_lock& operator=(unique_lock&); unique_lock& operator=(upgrade_lock& other); public: -#ifdef __SUNPRO_CC +#if BOOST_WORKAROUND(__SUNPRO_CC, < 0x5100) unique_lock(const volatile unique_lock&); #endif unique_lock(): @@ -300,7 +300,7 @@ return detail::thread_move_t >(*this); } -#ifdef __SUNPRO_CC +#if BOOST_WORKAROUND(__SUNPRO_CC, < 0x5100) unique_lock& operator=(unique_lock other) { swap(other); " Patches closed Boost 1.43.0 thread Boost 1.42.0 Problem fixed