#pragma fenv_access on
void CheckSeriousFlags() {
TFPExceptionSet soughtExceptions(kFPOverflow, kFPInvalid);
TFPEnvironmentModifier environmentSnapshot;
if (soughtExceptions.Intersects(environmentSnapshot.GetFlags))
// overflow or invalid have occurred--alert the user
}