Subject: Re: [boost] [move][unique_ptr] c++14 unique_ptr comes to town
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2014-09-03 16:05:14
El 03/09/2014 13:16, Ion Gaztañaga escribió:
>> has_virtual_destructor is the correct one. It's a later addition and the
>> implementation on which I prototyped probably didn't have it.
> Ok, this requires a compiler intrinsic, but I can add it to my
> unique_ptr implementation.
One problem I've found for constructors taking the pointer is that the
pointer can be an incomplete type whereas has_trivial_destructor
requires a complete type.
We could apply it to reset() and the assignment, but without
constructors IMHO we miss the most used functions.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk