The following code gives a compiler error in C++:
const double** x;
const void** y = x;
How do you get a const-safe equivalent?
Of course, you can get this to work with a simple cast:
const void** y = (const void**) x;
But surely the compiler should know that this ok? Why does it complain?