From: David Abrahams (dave_at_[hidden])
Date: 2004-01-04 08:28:03
Robert Ramey <ramey_at_[hidden]> writes:
>> David Abrahams wrote
>>Can't de-serialization run out of memory as it dynamically allocates
> Of course it can.
> I didn't really express myself very well. What I meant is
> that de-serialization doesn't present any special issues as far
> as exceptions are concerned. Even restoring a string
> variable could throw a memory exception.
> Now I'm intrigued with the memento archive adaptor
> described in the previous post. This overloads pointer
> serialization so that pointers are not re-created
> but rather dereferenced and re-loaded. This would
> mean no dynamic memory allocation.
What's the point of doing that when you could just keep the
un-serialized objects in your undo stack?
-- 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