Assuming (which you can in your case, since it is a type void*), the expression vpdoes not throw an exception (it could be executed if it were an object of the type that had a handler that threw an exception), then
A *ap = reinterpret_cast<A*>(vp);
he will not throw an exception.
dereferencing apmay cause an exception.
source
share