Boost logo

Boost :

From: bill_kempf (williamkempf_at_[hidden])
Date: 2002-02-20 10:55:46


Here's one for the list:

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

Example:

class foo
{
public:
   foo(int, char);
...
};

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'] };

Bill Kempf


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