3 Sep
2014
3 Sep
'14
11:16 a.m.
El 03/09/2014 11:08, Peter Dimov escribió:
Ion Gaztañaga wrote:
Semantics might be a bit more clear for default_delete, as it calls delete. std::is_polymorphic might not be very accurate, maybe std::has_virtual_destructor.
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. Best, Ion