Boost C++ Libraries: Ticket #4892: boost::make_shared doesn't use r-value ref support unless variadic templates are also supported https://svn.boost.org/trac10/ticket/4892 <p> Currently, boost::make_shared doesn't make use of r-value references unless there is also support for variadic templates ("#if defined( BOOST_HAS_VARIADIC_TMPL ) &amp;&amp; defined( BOOST_HAS_RVALUE_REFS )"). </p> <p> At least one popular compiler supports rvalue refs but unfortunately not variadic templates (MSVC 10.0), so the implementation falls back on the pre-c++0x implementation. </p> <p> The attached file improves the situation by adding make_shared support for up to 10 perfectly forwarded constructor arguments. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4892 Trac 1.4.3 anonymous Wed, 24 Nov 2010 10:34:39 GMT attachment set https://svn.boost.org/trac10/ticket/4892 https://svn.boost.org/trac10/ticket/4892 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_make_shared.hpp</span> </li> </ul> Ticket Vicente Botet <vicente.botet@…> Tue, 07 Dec 2010 19:55:21 GMT type changed https://svn.boost.org/trac10/ticket/4892#comment:1 https://svn.boost.org/trac10/ticket/4892#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Patches</span> </li> </ul> <p> If the current implementation doesn't make any code to work incorrectly this should be a Feature request. </p> Ticket arnetheduck@… Tue, 07 Dec 2010 20:39:02 GMT type changed https://svn.boost.org/trac10/ticket/4892#comment:2 https://svn.boost.org/trac10/ticket/4892#comment:2 <ul> <li><strong>type</strong> <span class="trac-field-old">Patches</span> → <span class="trac-field-new">Feature Requests</span> </li> </ul> <p> To be honest, I missed that field when creating the ticket, thanks for changing...it's actually an enhancement to an existing feature, so "patches" feels natural although any classification will do as long as it catches Mr Dimov's attention =) </p> Ticket anonymous Tue, 07 Dec 2010 20:54:21 GMT type changed https://svn.boost.org/trac10/ticket/4892#comment:3 https://svn.boost.org/trac10/ticket/4892#comment:3 <ul> <li><strong>type</strong> <span class="trac-field-old">Feature Requests</span> → <span class="trac-field-new">Patches</span> </li> </ul> Ticket Peter Dimov Thu, 24 Feb 2011 20:41:33 GMT <link>https://svn.boost.org/trac10/ticket/4892#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4892#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/69244" title="Apply patch to allow perfect forwarding without variadics. Refs #4892.">[69244]</a>) Apply patch to allow perfect forwarding without variadics. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4892" title="#4892: Patches: boost::make_shared doesn't use r-value ref support unless variadic ... (closed: fixed)">#4892</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Thu, 24 Feb 2011 21:55:27 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/4892#comment:5 https://svn.boost.org/trac10/ticket/4892#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Peter Dimov Tue, 22 Mar 2011 23:17:53 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4892#comment:6 https://svn.boost.org/trac10/ticket/4892#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</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/70433" title="Merge [69244] to release. Fixes #4892.">[70433]</a>) Merge <a class="changeset" href="https://svn.boost.org/trac10/changeset/69244" title="Apply patch to allow perfect forwarding without variadics. Refs #4892.">[69244]</a> to release. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4892" title="#4892: Patches: boost::make_shared doesn't use r-value ref support unless variadic ... (closed: fixed)">#4892</a>. </p> Ticket