|
Boost : |
From: Dave Harris (brangdon_at_[hidden])
Date: 2003-09-30 13:17:58
In-Reply-To: <20030929201109.GA20837_at_[hidden]>
On Mon, 29 Sep 2003 16:11:09 -0400 Brian McNamara (lorgon_at_[hidden])
wrote:
> It seems to me that the right way to get a Foo out of a stream is not
> Foo foo;
> i >> foo;
> but rather
> Foo foo( i );
> You construct a foo based on the data in the input stream.
Agreed, but in practice this can make it hard to implement Foo in a
flexible way.
class Foo {
Member member1;
Member member2;
public:
Foo( archive &ar ) : member1(ar), member2(ar) {
}
};
Looks good, but how do we add versioning and XML?
-- Dave Harris, Nottingham, UK
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk