Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2007-03-02 21:21:30


n.torrey.pines_at_[hidden] wrote:
> On 3/1/07, Robert Ramey <ramey_at_[hidden]> wrote:
>
>>
>> Note: the function of 'delete_created_pointers' is to delete any
>> pointer created during the process of loading. Construction
>> of an archive creates no such pointers. So not calling
>> 'delete_created_pointers' in this case will have no effect and
>> does not need to be called.
>
> Hi
>
> Since I throw an exception in "load", following your earlier advice
> (conditional loading), I wonder if I should call
> delete_created_pointers or the archives' destructors make that
> redundant.

The archive destructors don't do this. I thought it might be
presumptuous.

To my mind, the best solution is to use smart_pointers
and serialize them.

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