|
Boost Users : |
Subject: Re: [Boost-users] [1.41][serialization] deserialization ofweak_ptrfails
From: Alexander Gutenev (gutenev_at_[hidden])
Date: 2009-12-15 02:33:37
Are you sure this need special handling?
I think the purpose of enable_shared_from_this is to make weak reference to
self and maintain it automatically. You don't do anything special when
constructing a shared_ptr with enable_shared_from_this-derived or when
calling make_shared with it. And before 1.41 everything worked just fine!
"Robert Ramey" <ramey_at_[hidden]> wrote in message
news:hg60vt$j5u$1_at_ger.gmane.org...
> Normally, one would expect so serialize a base class using
> the base object as below:
>
> However, serialization for enable_shared_from_this has not
> been written, so this won't work until that happens. A few
> minutes spent looking into this reveals that implementing
> serialization for this class is not a trivial task. So, for now,
> this cannot be done.
>
> Robert Ramey
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net