$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [move] unique_ptr converting constructor
From: Peter Dimov (lists_at_[hidden])
Date: 2015-05-05 18:13:44
Ion Gaztañaga wrote:
> That's because the converting constructor is programed as taking
> rv<unique_ptr<U, E>> (similar to unique_ptr<U, E> &&) and that provokes
> emulation limitations when returning by value convertible types.
Yes. I tried to give it the result of boost::move, which should be rv<>, but
it still didn't work.
By value has its own limitations, as described.
This aside, ought not unique_ptr and make_unique be in boost instead of
movelib? I'll remove boost::make_unique if we do this.