Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-12-01 09:20:17


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk