16 Mar
2004
16 Mar
'04
4:44 a.m.
In article
That never happens as long as the shared_ptr takes ownership in the same DLL where the new() occurs. At the point the raw pointer is acquired by the shared_ptr, a templated deleter is instantiated; it has knowledge not only of the correct heap but also the full type of the raw pointer. delete is always performed by dynamic dispatch.
This should be mentioned in the documentation. It's an extremely important feature and I could find no mention of it anywhere other than what you just said. meeroh -- If this message helped you, consider buying an item from my wish list: http://web.meeroh.org/wishlist