[Boost-bugs] [Boost C++ Libraries] #6673: shared_lock: move assign doesn't works with c++11

Subject: [Boost-bugs] [Boost C++ Libraries] #6673: shared_lock: move assign doesn't works with c++11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-10 15:36:02


#6673: shared_lock: move assign doesn't works with c++11
------------------------------+---------------------------------------------
 Reporter: viboes | Owner: viboes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6673>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC