3 Sep
2014
3 Sep
'14
8:05 p.m.
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. Ion