来源:<The C++ Programming Language
void f(int* pi)
{
void* pv = pi; // ok: implicit conversion
*pv; // error: can't dereference void*
pv++; // error: the size of the object pointed to is unknown
int* pi2 = static_cast<int*>(pv); // explicit conversion back to int*
double* pd1 = pv; // error
double* pd2 = pi; // error
double* pd3 = static_cast<double*>(pv); // ok but unsafe
}