
8 Oct
2007
8 Oct
'07
8:14 p.m.
I think there is a significant issue with your proposed extension mechanism: an archive can only contain a single extension object at a time. Consequently, if two types require different extension objects, they cannot both be serialized using the same archive. In particular, if say flyweight requires some special extension object, and shared_ptr requires its own special extension object, it won't be possible to serialize both using the same archive. It seems, therefore, that in practice there would have to be a single standardized extension object, which is either in use or not in use for a particular archive. -- Jeremy Maitin-Shepard