For the code bellow:
auto main() -> int {
char arr[] = {'a', 'b', 'c'};
char * p = arr;
char ** pp = &p;
const char * const * p_const = pp;
}
Clion says that there is an error on the last line
const char * const * p_const = pp;
"Assigning 'char * *' to 'const char * const *' discards const qualifier"
AFAIK, this cast is allowed and the code compiles.
Is there a way to fix the problem?