Boost C++ Libraries: Ticket #8384: Make shared_ptr movable https://svn.boost.org/trac10/ticket/8384 <p> std::shared_ptr is movable. I would be nice if boost::shared_ptr provides the same interface and use Boost.Move to make the code portable to non c++11 compilers. </p> <pre class="wiki">shared_ptr(shared_ptr&amp;&amp; r) noexcept; template&lt;class Y&gt; shared_ptr(shared_ptr&lt;Y&gt;&amp;&amp; r) noexcept; 20 Remark: The second constructor shall not participate in overload resolution unless Y* is convertible to T*. 21 Effects: Move-constructs a shared_ptr instance from r. 22 Postconditions: *this shall contain the old value of r. r shall be empty. r.get() == 0. ... shared_ptr(shared_ptr&amp;&amp; r) noexcept; template&lt;class Y&gt; shared_ptr(shared_ptr&lt;Y&gt;&amp;&amp; r) noexcept; 20 Remark: The second constructor shall not participate in overload resolution unless Y* is convertible to T*. 21 Effects: Move-constructs a shared_ptr instance from r. 22 Postconditions: *this shall contain the old value of r. r shall be empty. r.get() == 0. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8384 Trac 1.4.3 Peter Dimov Thu, 04 Apr 2013 10:09:55 GMT <link>https://svn.boost.org/trac10/ticket/8384#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8384#comment:1</guid> <description> <p> boost::shared_ptr already provides this. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 04 Apr 2013 17:49:12 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8384#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8384#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8384#comment:1" title="Comment 1">pdimov</a>: </p> <blockquote class="citation"> <p> boost::shared_ptr already provides this. </p> </blockquote> <p> I see the C++11 implementation. Is the Boost.Move emulation provided? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Thu, 04 Apr 2013 18:22:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8384#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8384#comment:3</guid> <description> <p> No. Why do you need it? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 04 Apr 2013 21:34:57 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8384#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8384#comment:4</guid> <description> <p> Boost.Thread uses boost::shared_ptr, and the code will be more homogeneous if shared_ptr implemented move semantics using Boost.Move. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Thu, 04 Apr 2013 22:17:41 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8384#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8384#comment:5</guid> <description> <p> Can you give me a specific example? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sat, 28 Sep 2013 16:19:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8384#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8384#comment:6</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/85987" title="Merge accumulated patches from Trunk. Refs #8384, Refs #8855, refs ...">[85987]</a>) Merge accumulated patches from Trunk. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8384" title="#8384: Feature Requests: Make shared_ptr movable (closed: invalid)">#8384</a>, Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8855" title="#8855: Bugs: [math] GCC 4.8+ warns unused local typedef... (closed: fixed)">#8855</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9107" title="#9107: Bugs: unused parameter warning in fraction with clang (closed: fixed)">#9107</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9109" title="#9109: Bugs: Warning in bessel with -Wshadow (closed: fixed)">#9109</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8333" title="#8333: Bugs: [math] PGI 11.3 problems (sph_bessel.cpp, sph_bessel.cpp) (closed: fixed)">#8333</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8621" title="#8621: Bugs: erf function gives wrong results with pgcpp - PGI 10.4 (closed: fixed)">#8621</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8732" title="#8732: Bugs: Need to protect calls against C99 math macro expansion (closed: fixed)">#8732</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8733" title="#8733: Feature Requests: Testing for unprotected references to C99 math macros (closed: fixed)">#8733</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8837" title="#8837: Bugs: boost::math::students_t quantile() fails for huge degrees of freedom (closed: fixed)">#8837</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8940" title="#8940: Bugs: Argument promotion fails dependent libs on platforms not supporting ... (closed: fixed)">#8940</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9042" title="#9042: Bugs: boost::math, cdf(complement(normal_distribution&lt;&gt;(...)) fails to catch ... (closed: fixed)">#9042</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9087" title="#9087: Support Requests: [boost math] error: no operator &#34;=&#34; matches these operands in ... (closed: fixed)">#9087</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9104" title="#9104: Bugs: boost::math::ellint_2 bug in x86_64 double precision (closed: fixed)">#9104</a>, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9126" title="#9126: Bugs: Logistic distribution pdf() and cdf(complement()) fail to catch ... (closed: fixed)">#9126</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Wed, 11 Dec 2013 17:46:34 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8384#comment:7 https://svn.boost.org/trac10/ticket/8384#comment:7 <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">invalid</span> </li> </ul> Ticket