Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2004-04-26 12:44:47


Andreas Huber wrote:

> Ok, but IIUC this undermines the original promise that a class
> implementing serialize or safe/load can be serialized to *any* archive,
> even future ones without changing its implementation. I see that I
> wouldn't need to change the serialization *code* but I'd need to add
> an include to the .cpp file, right?

Correct. But I don't see that as undermining the original promise. You will
have to re-compile for future archives, but code will not have to be
changed. The polymorphic archive (in progress) will lift even that
restriction.

>
> >> 9. The library registers all kinds of stuff with static instances.
> >> This precludes its use outside main().
>
> > Hmmm - that would be news to me.

> Your library cannot be used to save/load anything before main() is entered
> nor can it be used to save/load anything after main() has been left.

Correct. It never occurred to me to mention this.

Robert Ramey


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk