M
Morten Frederiksen
Can anyone explain why this does not work?
int a = 42;
int* b = &a;
const int** c = &b; // error
I get "invalid conversion from `int**' to `const int**'" from the
compiler. Logically there should not be a problem, so perhaps it is a
limitation on the compiler.
Regards
Morten Frederiksen
int a = 42;
int* b = &a;
const int** c = &b; // error
I get "invalid conversion from `int**' to `const int**'" from the
compiler. Logically there should not be a problem, so perhaps it is a
limitation on the compiler.
Regards
Morten Frederiksen