From: David Abrahams (dave_at_[hidden])
Date: 2005-06-09 11:42:07
"Robert Ramey" <ramey_at_[hidden]> writes:
> In the course if making a new shared_ptr seriailzation implementation, I've
> come upon a question.
> If a shared pointer has been created with a custome deleter, how is one to
> determine what kind of deleter is attached without opening the
> implementation of shared_ptr? That is, I see no way to correctly
> serialize/deserialize a shared_ptr with a custom deleter from the published
> interface of shared_ptr. Can anyone explain how to do this?
There is a get_deleter function. That's a runtime check of course.
Someone would have to register the interesting deleters with the
serialization system so that it can check for those, specifically.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk