Is it permissible to initialize non-static data members inside a class,
like so?
class whatever
{
int x = 9;
const int y = 10;
...
};
If so, is there a reference in the "standard" that grants this
permission, and when did this syntax come about?
Thanks
Is it permissible to initialize non-static data members inside a class,
like so?
class whatever
{
int x = 9;
const int y = 10;
...
};
If so, is there a reference in the "standard" that grants this
permission, and when did this syntax come about?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 235:25:01 |
Calls: | 6,624 |
Files: | 12,172 |
Messages: | 5,319,767 |