Modify unique_ptr's constructor from convertible unique_ptr's to take the argument by value. This allows constructing unique_ptr from functions returning convertible unique_ptr's. See https://svn.boost.org/trac/boost/ticket/11259 for some details.

This commit is contained in:
Ion Gaztañaga
2015-05-06 12:32:11 +02:00
parent 69598a3d3f
commit 4a44ed3d26
4 changed files with 137 additions and 7 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ void test()
////////////////////////////////
// make_unique_single
// make_unique_array
////////////////////////////////
namespace make_unique_array{