Calling code in , which has no permitted exceptions, should not cause any problems - this is no different from calling an external C function or something like that.
Calling a code from that does not have allowed exceptions (to code with the exception turned on) will probably not contain the correct semantics of erasing the stack in the disabled exception code, which means that you will violate the invariants of this code, unless it was specifically designed for work with exceptions. (For example, some libraries (for example, ANTLR) allocate all the memory in the block and delete the user code each time, allowing exceptions to be thrown without leakage, even if they themselves do not use exceptions).
Raymond Chen has a pretty article on how C ++ exception handling works on MSVC ++. In short, it is built on top of Windows SEH. Therefore, it should behave similarly to what happens if you throw a SEH exception in, for example, C. (However, I did not check it myself)
source share