Ahhh - everything is more involved that it first appears.
I believe the same basic approach could be made two work. Perhaps
overloading
pointer_iserializer::load_object_ptr from iserializer.hpp could be made to
work.
I did play around a little with this but couldn't make it work without
investing too much effort. Sorry I don't have a complete solution. Let me
know when you find one.
Robert Ramey
"Sergey Skorniakov"
Hello, Sergey! You wrote to Robert Ramey on Tue, 7 Dec 2004 12:42:01 +0300:
SS> Thanks, Robert. This great! No one can say why I tried to override SS> load_pointer member. If I already know real object types, I can just SS> create special output archive and load objects with incompatible input SS> archives, without worring about tracking and object creation stuff. SS> This works fine.
Unfortunately, I was to hasty with conlusions - this solution doesn't work when objects serialized by base class pointers.
With best regards, Sergey.