Modify

Opened 5 years ago

Closed 5 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:

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 (0)

Change History (2)

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

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

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

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain viboes.
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.