The future of proofreading.
Let's say in the future I will do this:
float blah = 1.0f; float* f = &blah;
Now int i = static_cast<int>(f); stops compilation, but int i = (int)f; performs reinterpret_cast .
static_cast<int> This is exactly what I want you to do. (int) does everything possible to get int. With the latter, the compiler will struggle to get the int value, and this is rarely (never?) Desirable.
R. Martinho Fernandes
source share