|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-07-08 07:17:51
David Abrahams wrote:
> "Andy Little" <andy_at_[hidden]> writes:
>
>> "Dave Harris" <brangdon_at_[hidden]> wrote
>>> In-Reply-To: <cch4as$941$1_at_[hidden]>
>>>
>>> has no direct equivalent. It becomes:
>>> v.clear();
>>> v << 1 << 2 << 3;
>>
>> or v <<= 1 << 2 << 3;
>
> surely not ;-)
>
> *maybe* it would be
>
> (v <<= 1) << 2 << 3
Or maybe we should just use
int cv[] = { 1, 2, 3 };
v.assign( cv, end(cv) );
as I've been doing for years.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk