Subject: Re: [boost] [move][unique_ptr] c++14 unique_ptr comes to town
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2014-08-25 19:09:28
Vicente J. Botet Escriba wrote:
> Le 25/08/14 20:16, Glen Fernandes a Ã©crit :
>> It looks like Peter has already started on an implementation, and I
>> like the approach he took. If he has the time, and the inclination, I
>> would like to have him drive that to completion to as the
>> Boost.SmartPtr unique_ptr implementation. What would be nicer still,
>> is if Boost.Move could then leverage that implementation to provide a
>> C++03 emulation in boost::movelib or boost::moveable etc. but that
>> might be a taller order.
> While I'm not against for C++11 only libraries, I think that this one
> must be provided for C++98 compilers.
I fully concur with the above statement.
Why do you think Peter's implementation is better? AFAIU it's a
prototype. Is it that good that you think it would be better to use it
as a base? It certainly must be more clear/elegant since it relies on
C++11 features. I'm guessing that after adding the move emulation for
C++98, optimizations, workarounds, etc. the code would look different.
Close to Ion's maybe?
Without checking out the code IMHO more reasonable approach would be to
take more complete implementation and then port some nice solutions from
the other one but of course I may be missing something.