Boost C++ Libraries: Ticket #6673: shared_lock: move assign doesn't works with c++11 https://svn.boost.org/trac10/ticket/6673 <p> When move semantics is supported by the compiler the shared_lock move assign doesn't works because boost::move is missing </p> <pre class="wiki"> shared_lock&amp; operator=(shared_lock&lt;Mutex&gt; &amp;&amp; other) { shared_lock temp(other); swap(temp); return *this; } </pre><p> The temp must constructor must use boost::move </p> <pre class="wiki"> shared_lock&amp; operator=(shared_lock&lt;Mutex&gt; &amp;&amp; other) { shared_lock temp(boost::move(other)); swap(temp); return *this; } </pre><p> The same applies to the other move assignments. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6673 Trac 1.4.3 viboes Sat, 10 Mar 2012 16:41:31 GMT version changed https://svn.boost.org/trac10/ticket/6673#comment:1 https://svn.boost.org/trac10/ticket/6673#comment:1 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.49.0</span> → <span class="trac-field-new">Boost Development Trunk</span> </li> </ul> Ticket viboes Sat, 10 Mar 2012 17:05:39 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6673#comment:2 https://svn.boost.org/trac10/ticket/6673#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/77291" title="Thread: Fix #6673 and partial fix for 6671, 6672, 6675 which need to ...">[77291]</a>) Thread: Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6673" title="#6673: Bugs: shared_lock: move assign doesn't works with c++11 (closed: fixed)">#6673</a> and partial fix for 6671, 6672, 6675 which need to add the documentation and test </p> Ticket