Could const_cast ever return a null pointer for inputs other than null pointer?

428 views Asked by At

cppreference explains that one possible const_cast conversion is a "null pointer value may be converted to the null pointer value of new_type".

Is there any other way const_cast can return a null pointer?

0

There are 0 answers