This code: void test(const int n) { auto j = n; j++; }
Gives this error: cannot modify const expression j Is this considered a feature or a bug? I would assume most people wouldn't want new variables inheriting const.
This code: void test(const int n) { auto j = n; j++; }
Gives this error: cannot modify const expression j Is this considered a feature or a bug? I would assume most people wouldn't want new variables inheriting const.