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: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 04:15:22 |
| Calls: | 12,099 |
| Calls today: | 7 |
| Files: | 15,003 |
| Messages: | 6,517,892 |