|
Boost : |
From: Asger Alstrup Nielsen (alstrup_at_[hidden])
Date: 2000-11-23 05:23:58
> - I'm happy with overloading operator<< . Note that this will
> also be used for reading, i.e. it will (sometimes) change the
> variables i and j in this example:
> descriptor << i << j;
> so it looked a bit counter-intuitive to me on first sight.
I agree that it looks a bit counter-intuitive.
My experience with use of XTL is that it's the reading case that you
tend to forget, when you write the describe-function. Therefore, I
would suggest that we use
descriptor >> i >> j;
instead to remind you of the reading?
Visually, it also can be interpreted as a directed list, corresponding
to the order of the elements when externalized/serialized.
Of course, an operator<> would be nice ;-)
Greets,
Asger
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk