$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Sohail Somani (sohail_at_[hidden])
Date: 2008-04-27 14:26:47
Scott Howlett wrote:
> Hello,
> 
> In a recent post, I asked whether it was possible to swap deserialized 
> pointer values for already-existing ones so I could merge the incoming 
> data with objects already in memory. I guess the answer is no...
> 
> An alternative is to serialize some other identifier instead of writing 
> pointers, and then on de-serialization I find my existing objects via 
> those identifiers. This works fine, but it leads to another question:
> 
> How do I make my internal objects available to the deserialization 
> routines so that they have an opportunity to look up the necessary 
> information? Or more generally, How do I do stateful serialization / 
> deserialization? For example, maybe I want to supply options that 
> fine-tune how my data is serialized or deserialized.
I may be evil for suggesting this: 
http://uint32t.blogspot.com/2008/03/lame-implementation-of-dynamic-scoping.html
I am only suggesting the idea, not the implementation!!!!
-- Sohail Somani http://uint32t.blogspot.com