|
![](/i/fill.gif) |
S??awomir Szczyrba <cre### [at] of the night> wrote:
> Search for 'C99 designated initializers'
The next C++ standard will (as far as I know) not implement designated
initializers. However, it will enhance initialization lists in other ways.
For example, it will be possible to do things like this:
std::vector<int> v = { 1, 2, 3, 4, 5 };
or like this:
struct A { int i; double d; };
A foo() { return { 1, 2.5 }; }
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |