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: | 482 |
Nodes: | 16 (2 / 14) |
Uptime: | 40:49:30 |
Calls: | 9,566 |
Files: | 13,656 |
Messages: | 6,141,791 |