Boost logo

Boost :

From: Rainer Deyke (root_at_[hidden])
Date: 2002-02-20 11:15:34


----- Original Message -----
From: "bill_kempf" <williamkempf_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, February 20, 2002 8:55 AM
Subject: [boost] Re: Most needed/desired features in C++

> When constructing arrays of objects it would be nice if we could do
> so using something other then the default constructor.

> foo[2] foos = { { 10, 'a' }, { 20, 'b' } };
>
> The above syntax is the most natural, but it could break existing
> code, so maybe instead we'd use [] like so:
>
> foo[2] foos = { [10, 'a'], [20, 'b'] };

How about:

foo foos[2] = { foo(10, 'a'), foo(20, 'b') };

--
Rainer Deyke | root_at_[hidden] | http://rainerdeyke.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk