Opened 6 years ago

Closed 6 years ago

#6673 closed Bugs (fixed)

shared_lock: move assign doesn't works with c++11

Reported by: viboes Owned by: viboes
Milestone: To Be Determined Component: thread
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:


When move semantics is supported by the compiler the shared_lock move assign doesn't works because boost::move is missing

        shared_lock& operator=(shared_lock<Mutex> && other)
            shared_lock temp(other);
            return *this;

The temp must constructor must use boost::move

        shared_lock& operator=(shared_lock<Mutex> && other)
            shared_lock temp(boost::move(other));
            return *this;

The same applies to the other move assignments.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by viboes

Version: Boost 1.49.0Boost Development Trunk

comment:2 Changed 6 years ago by viboes

Resolution: fixed
Status: newclosed

(In [77291]) Thread: Fix #6673 and partial fix for 6671, 6672, 6675 which need to add the documentation and test

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.