In C++, Type **
to Type const **
conversion is forbidden. Also, conversion from derived **
to Base **
is not allowed.
Why are these conversions wtong ? Are there other examples where pointer to pointer conversion cannot happen ?
Is there a way to work around: how to convert a pointer to pointer to a non-const object of type Type
to a pointer to pointer to const object of type Type
, since Type **
--> Type const **
does not make it ?