C
Comp1597
I've been told that const_cast "adds or removes the constness of an
expression".
I understand that it converts pointers to const to pointers to non-
const and references to const to references to non-const. But how
does a const_cast affect a variable of type const int* const? I would
assume a const_cast would make such a variable have type const int*
Is this correct?
Thanks
expression".
I understand that it converts pointers to const to pointers to non-
const and references to const to references to non-const. But how
does a const_cast affect a variable of type const int* const? I would
assume a const_cast would make such a variable have type const int*
Is this correct?
Thanks