|
Boost : |
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk