[Boost-bugs] [Boost C++ Libraries] #4892: boost::make_shared doesn't use r-value ref support unless variadic templates are also supported

Subject: [Boost-bugs] [Boost C++ Libraries] #4892: boost::make_shared doesn't use r-value ref support unless variadic templates are also supported
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-24 10:34:18


#4892: boost::make_shared doesn't use r-value ref support unless variadic
templates are also supported
-----------------------------------+----------------------------------------
 Reporter: arnetheduck@… | Owner: pdimov
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: smart_ptr
  Version: Boost 1.45.0 | Severity: Problem
 Keywords: |
-----------------------------------+----------------------------------------
 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 ) && defined( BOOST_HAS_RVALUE_REFS )").

 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.

 The attached file improves the situation by adding make_shared support for
 up to 10 perfectly forwarded constructor arguments.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4892>
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:04 UTC