El 04/05/2015 a las 1:23, Peter Dimov escribió:
While looking at
https://svn.boost.org/trac/boost/ticket/11259
I found that after implementing a converting shared_ptr constructor that takes a boost::movelib::unique_ptr, the straightforward code in the ticket still fails (with g++ in C++03 mode):
mystd::shared_ptr<int> get_thing() { mystd::unique_ptr<int> r( load_thing() ); return boost::move( r ); }
fail for the unique_ptr<int const> case.
Thanks Peter,
That's because the converting constructor is programed as taking
rv