Opened 6 years ago

Closed 6 years ago

#6175 closed Bugs (fixed)

Compile error with SunStudio

Reported by: anonymous Owned by: viboes
Milestone: Boost 1.49.0 Component: thread
Version: Boost 1.48.0 Severity: Showstopper
Keywords: Cc:


Version of compiler: CC: Sun C++ 5.10 SunOS_sparc 2009/06/03

A compile error occurs with the above compiler when boost/thread.hpp is included:

"./boost/thread/future.hpp", line 422: Error:
is not accessible from

There is a patch for this issue in the mailinglist:

But it is still not committed.

Attachments (0)

Change History (5)

comment:1 Changed 6 years ago by viboes

Cc: viboes added
Owner: changed from Anthony Williams to viboes
Status: newassigned

Please could you check if the following works in your configuration?


comment:2 Changed 6 years ago by viboes

Cc: viboes removed
Milestone: To Be DeterminedBoost 1.49.0

In order to state clearly that this is a workaround I will use instead

#if defined __DECCXX || defined __SUNPRO_CC

Let me know if this works for you.

Committed in trunk revision 75788.

comment:3 Changed 6 years ago by anonymous

Yeah, it compiles with this workaround.

Is this a good workaround?

You could also change the visibility of unique_lock& operator=(unique_lock&) in boost/thread/locks.hpp to public.

I think the root of problem has something to do that the sun compiler does not support rvalue references. The define BOOST_NO_RVALUE_REFERENCES is set in boost/config/compiler/sunpro_cc.hpp.

comment:4 Changed 6 years ago by viboes

Please could you open another ticket for the visibility?

comment:5 Changed 6 years ago by viboes

Resolution: fixed
Status: assignedclosed

Committed in release at #76291

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.