[Boost-bugs] [Boost C++ Libraries] #8384: Make shared_ptr movable

Subject: [Boost-bugs] [Boost C++ Libraries] #8384: Make shared_ptr movable
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-04 05:46:40


#8384: Make shared_ptr movable
------------------------------+---------------------------------------------
 Reporter: viboes | Owner: pdimov
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: smart_ptr
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 std::shared_ptr is movable. I would be nice if boost::shared_ptr provides
 the same interface and use Boost.Move to make the code portable to non
 c++11 compilers.


 {{{
 shared_ptr(shared_ptr&& r) noexcept;
 template<class Y> shared_ptr(shared_ptr<Y>&& r) noexcept;
 20 Remark: The second constructor shall not participate in overload
 resolution unless Y* is convertible
 to T*.
 21 Effects: Move-constructs a shared_ptr instance from r.
 22 Postconditions: *this shall contain the old value of r. r shall be
 empty. r.get() == 0.

 ...

 shared_ptr(shared_ptr&& r) noexcept;
 template<class Y> shared_ptr(shared_ptr<Y>&& r) noexcept;
 20 Remark: The second constructor shall not participate in overload
 resolution unless Y* is convertible
 to T*.
 21 Effects: Move-constructs a shared_ptr instance from r.
 22 Postconditions: *this shall contain the old value of r. r shall be
 empty. r.get() == 0.
 }}}

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