Boost C++ Libraries: Ticket #6625: Support conversion from std::unique_ptr to boost::shared_ptr https://svn.boost.org/trac10/ticket/6625 <p> Please support conversion from std::unique_ptr to boost::shared_ptr like for std::auto_ptr </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6625 Trac 1.4.3 anonymous Tue, 28 Feb 2012 14:06:28 GMT summary changed https://svn.boost.org/trac10/ticket/6625#comment:1 https://svn.boost.org/trac10/ticket/6625#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">Support std::unique_ptr in boost::shared_ptr</span> → <span class="trac-field-new">Support conversion from std::unique_ptr to boost::shared_ptr</span> </li> </ul> Ticket Michel Morin <mimomorin@…> Tue, 28 Feb 2012 14:49:26 GMT <link>https://svn.boost.org/trac10/ticket/6625#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6625#comment:2</guid> <description> <p> In C++11, <code>std::shared_ptr</code> has the following constructor </p> <pre class="wiki">template &lt;class Y, class D&gt; shared_ptr(unique_ptr&lt;Y, D&gt;&amp;&amp; r); </pre> </description> <category>Ticket</category> </item> <item> <author>arkadiy_s@…</author> <pubDate>Tue, 28 Feb 2012 14:52:22 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6625#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6625#comment:3</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/6625#comment:2" title="Comment 2">Michel Morin &lt;mimomorin@…&gt;</a>: </p> <blockquote class="citation"> <p> In C++11, <code>std::shared_ptr</code> has the following constructor </p> <pre class="wiki">template &lt;class Y, class D&gt; shared_ptr(unique_ptr&lt;Y, D&gt;&amp;&amp; r); </pre></blockquote> <p> I want similar constructor for boost::shared_ptr </p> </description> <category>Ticket</category> </item> <item> <author>Michel Morin <mimomorin@…></author> <pubDate>Tue, 28 Feb 2012 15:25:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6625#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6625#comment:4</guid> <description> <p> My comment just backs up your suggestion by describing a rationale ;) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Wed, 31 Oct 2012 22:16:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6625#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6625#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/81131" title="Add shared_ptr constructor taking std::unique_ptr. Refs #6625.">[81131]</a>) Add shared_ptr constructor taking std::unique_ptr. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6625" title="#6625: Feature Requests: Support conversion from std::unique_ptr to boost::shared_ptr (closed: fixed)">#6625</a>. </p> </description> <category>Ticket</category> </item> <item> <author>Arkadiy Shapkin <arkadiy_s@…></author> <pubDate>Wed, 31 Oct 2012 23:32:08 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6625#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6625#comment:6</guid> <description> <p> Thank you :-) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Wed, 14 Nov 2012 12:04:51 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6625#comment:7 https://svn.boost.org/trac10/ticket/6625#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/81335" title="Merged [81131] from trunk. Fixes #6625.">[81335]</a>) Merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/81131" title="Add shared_ptr constructor taking std::unique_ptr. Refs #6625.">[81131]</a> from trunk. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6625" title="#6625: Feature Requests: Support conversion from std::unique_ptr to boost::shared_ptr (closed: fixed)">#6625</a>. </p> Ticket