
29 Mar
2010
29 Mar
'10
1:54 p.m.
Additionally, you can move the unique_lock to transfer the ownership.
Regards,
Ovanes
On Mon, Mar 29, 2010 at 3:46 PM, Ovanes Markarian
On Mon, Mar 29, 2010 at 3:38 PM, Iskandar Prins
wrote: Hi,
I get this compiler error :
boost/thread/future.hpp", line 414: Error: Formal argument other of type boost::unique_lockboost::mutex in call to boost::unique_lockboost::mutex::operator=(boost::unique_lockboost::mutex) has an inaccessible copy constructor.
Any idea why this is? I'm using the sun compiler to compile it with
Because unique_lock cannot be copied. Either pass it as reference or use shared_lock.
Regards, Ovanes