
10 Jul
2006
10 Jul
'06
3:20 p.m.
Robert Ramey wrote:
And here's another idea.
create an archive adaptor which takes any archive and replaces its loading of primitives to something that just throws them away.
so at some point one would try
load(Archive & ar, Y & y, const unsigned version){ ar >> x; if(version == 1){ dummy_archive<Archive> da(ar); da >>y; } ar >> z; }
I havn't written documentation on archive adaptor but polymorphic_?archives are examples of such a thing.
Clever! But again, what if Y is already obsolete at version 2? Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net