Modify

Ticket #6673 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 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:

Description

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);
            swap(temp);
            return *this;
        }

The temp must constructor must use boost::move

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

The same applies to the other move assignments.

Attachments

Change History

comment:1 Changed 2 years ago by viboes

  • Version changed from Boost 1.49.0 to Boost Development Trunk

comment:2 Changed 2 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

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.