|
Boost : |
From: joel de guzman (isis-tech_at_[hidden])
Date: 2001-05-31 06:17:32
From: "Vladimir Prus"
>
[snip]
> >I always wished I could use the comma. I did, initially.
> >But I got bitten when I typed in:
>
> >r = a, b | c;
>
> Actually, *this* code can be made to work. Blitz library uses this syntax
for
> array assigments.
> Array<int> a;
> a = 1, 2, 3, 4, 5;
> This is acomplished by making operator= return special object. This is not
> likely to work in case of initialzation, anyway.
> --
but still:
a, b | c
will be
a, (b | c)
and not what we want:
(a, b) | c
Gosh if you could make that work, I want that!
Joel de Guzman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk