Re "In the second case you are trying to create a non-const pointer from a const one": No. the OP is trying to create a pointer to non-const from a pointer to const. None of the pointers themselves is const.
↧