[Boost-bugs] [Boost C++ Libraries] #9171: Boost.Type_Erasure should be move-aware regarding construction.

Subject: [Boost-bugs] [Boost C++ Libraries] #9171: Boost.Type_Erasure should be move-aware regarding construction.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-27 22:12:32


#9171: Boost.Type_Erasure should be move-aware regarding construction.
------------------------------+-----------------------------
 Reporter: rivorus@… | Owner: steven_watanabe
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: type_erasure
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+-----------------------------
 boost::type_erasure::any does not perform move-construction of the
 contained object during construction of the encapsulating any due to
 boost::type_erasure::detail::storage's constructor template not using
 perfect forwarding. This is particularly a problem because it means that
 you cannot construct an any with a move-only type, which has come up in
 practice. Similarly, it would be nice to have a "make_any" function
 template that is able to do completely in-place construction of the
 contained object.

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