I know that you can initialize the whole array with initialization list like this :
struct s {
int a[1];
s (int b): a{b}{}
};
, but is it possible to set value of one specific member? Because this:
struct s {
int a[1];
s (int b): a[0]{}
};
doesn't work and throws two errors:
expected '(' before '[' token
and
expected '{' before '[' token.