As usual, things turn out to be more complex than first meets the eye.
I believe this could be addressed by making our implementation of
memento_iarchive adaptor
a little more elaborate. Perhaps this could be done by overloading the
following from iserializer.hpp
"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.