
1 Dec
2006
1 Dec
'06
2:20 p.m.
Tobias Schwinger wrote:
BTW. I just noticed there is some "get_deleter logic" (marked as experimental in a comment) based on RTTI in 'shared_ptr.hpp'. What's that all about? Heap selection when using shared libraries?
The comment is wrong, get_deleter is no longer experimental, it's part of TR1 and the C++0x working paper. Its main purpose is for a library to be able to recognize its own shared_ptrs when someone feeds them back to it. Boost.Python uses it to store a pointer to the original Python object in its deleters and do a correct roundtrip conversion.