Opened 13 years ago

Closed 12 years ago

#3886 closed Bugs (fixed)

[patch] boost::thread future.hpp fails to compile with SunStudio 12.1 on Solaris 10

Reported by: John Keeping <john@…> Owned by: Anthony Williams
Milestone: Boost 1.42.0 Component: thread
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

When compiling the boost::asio examples the following error is produced:

"../../../../../../boost/thread/future.hpp", line 415: Error: Formal argument other of type boost::unique_lock<boost::mutex> in call to boost::unique_lock<boost::mutex>::operator=(boost::unique_lock<boost::mutex>) has an inaccessible copy constructor

None of the boost::thread examples seem to use this functionality as they compile cleanly.

The attached patch allows the ASIO examples to compile and run.

Attachments (1)

boost-future-unique_lock.patch (554 bytes ) - added by John Keeping <john@…> 13 years ago.

Download all attachments as: .zip

Change History (4)

by John Keeping <john@…>, 13 years ago

comment:1 by viboes, 12 years ago

Cc: viboes added

comment:2 by viboes, 12 years ago

Cc: viboes removed

comment:3 by Anthony Williams, 12 years ago

Resolution: fixed
Status: newclosed

This should now work due to the change in SunStudio workarounds in locks.hpp

Please reopen if it is still broken.

Note: See TracTickets for help on using tickets.