Boost logo

Boost Users :

From: Joel de Guzman (joel_at_[hidden])
Date: 2006-07-10 11:20:31


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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net