[Boost-bugs] [Boost C++ Libraries] #9620: detail::storage forcing a needless copy, doesn't support move-only types

Subject: [Boost-bugs] [Boost C++ Libraries] #9620: detail::storage forcing a needless copy, doesn't support move-only types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-30 19:13:48


#9620: detail::storage forcing a needless copy, doesn't support move-only types
------------------------------+-----------------------------
 Reporter: eric_niebler | Owner: steven_watanabe
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_erasure
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+-----------------------------
 {{{
 struct storage
 {
     storage() {}
     template<class T>
     storage(const T& arg) : data(new T(arg)) {}
     void* data;
 };
 }}}

 A type with a deleted copy ctor causes a compile failure in the above
 code. This constructor should use perfect forwarding when rvalue
 references are available.

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