Ticket #6673 (closed Bugs: fixed)

Opened 5 years ago

Last modified 5 years ago

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.


Change History

comment:1 Changed 5 years ago by viboes

  • Version changed from Boost 1.49.0 to Boost Development Trunk

comment:2 Changed 5 years ago by viboes

  • Status changed from new to closed
  • Resolution set to fixed

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


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

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

Note: See TracTickets for help on using tickets.