Boost logo

Boost :

Subject: Re: [boost] [Serialization] Bizarre bug
From: Jeffrey Bosboom (jbosboom_at_[hidden])
Date: 2009-08-11 03:04:45

Robert Ramey wrote:
> The problem only occurs when program 1 contains only
> ar << T
> and program 2 contains
> ar >> T
> and
> ar >> Tptr
> But if only program 2 contains ar >> Tptr - how does the
> archive it's supposed to read get created? It can be only
> created by a program which also contains ar << Tptr. That
> is in order for serialization to make any sense at all both
> programs have to contain exactly the same sequence of
> loads and saves. Hence. they will both either serializations
> for the same set of types at compiler time.

I've been following this discussion, but now I'm a bit confused.

If program A contains ar << T and program B contains ar << Tptr, can
program C read from files produced by both programs A and B? (C would
thus require ar >> T in the code that reads files produced by A and ar
>> Tptr when reading files produced by B.)

I certainly think it "ought to", but as I understand it from the
discussion, only the files produced by program B would be readable by
program C.

--Jeffrey Bosboom

Boost list run by bdawes at, gregod at, cpdaniel at, john at