Does reinterpret_cast lead to undefined behavior?
Although the reinterpret_cast itself might be unspecified behaviour, attempting to access the parameters once you’ve done the cast is undefined behaviour. N3337 [basic.lval]/10: If a program attempts to access the stored value of an object through a glvalue of other than one of the following types the behavior is undefined — the dynamic type of … Read more