14 Oct
2009
14 Oct
'09
4:42 a.m.
Emil Dotchevski wrote:
Couldn't we just use shared_ptr to manage the object? That won't need a virtual destructor and in all likelihood will work fine since we don't have similar bug reports for shared_ptr.
The only thing shared_ptr would do to us here is to add level of indirection leading to the destructor and free being called with the same address. And I already achieved this ;) Gennadiy