Subject: Re: [boost] Looking for thoughts on a new smart pointer: shared_ptr_nonnull
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2013-10-02 15:02:49
On Wed, Oct 2, 2013 at 6:01 AM, Thorsten Ottosen <
> a) swap would always work because both arguments must be non-null.
>From the way he was talking about inter-operability with shared_ptr, I
think he's referring to a swap with a shared_ptr.
b) this smart pointer cannot be moved (no move-assignment, no
It can be moved. A copy is just a move that happens to not alter the state
of the original object. Nothing about move operations requires that the
moved-from object is in some different state (I.E. C++03 types with just
copy constructors are still movable types). In other words, don't
explicitly delete the move function.
-- -Matt Calabrese