Opened 6 years ago

Closed 6 years ago

#6676 closed Feature Requests (fixed)

lock conversion should be explicit

Reported by: viboes Owned by: viboes
Milestone: Boost 1.50.0 Component: thread
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:


unique_lock, shared_lock and upgrade_lock provide implicit move conversions that should be implicit to avoid surprises. In addition it provides also move assignments that could result in the same kind of unexpected behavior.

The constructors must be explicit and the assignment removed.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by viboes

Milestone: To Be DeterminedBoost 1.50.0
Status: newassigned

comment:2 Changed 6 years ago by viboes

Resolution: fixed
Status: assignedclosed

define BOOST_THREAD_PROVIDES_EXPLICIT_LOCK_CONVERSION to get the explicit conversions.

Committed in release branch at [78543]

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.