EHsc vc EHa (synchronous vs asynchronous exception handling)
Posted
by
watson1180
on Stack Overflow
See other posts from Stack Overflow
or by watson1180
Published on 2011-01-01T08:15:57Z
Indexed on
2011/01/01
8:54 UTC
Read the original article
Hit count: 330
c++
|visual-studio
Could you give a bullet list of practical differences/implication? I read relevant MSDN article, but my understanding asynchronous exceptions is still a bit hazy.
I am writing a test suite using Boost.Test and my compiler emits a warning that EHa should be enabled:
warning C4535: calling _set_se_translator() requires /EHa
The project itself uses only plain exceptions (from STL) and doesn't need /EHa switch. Do I have to recompile it with /EHa switch to make the test suite work properly? My feeling is that I need /EHa for the test suit only.
Thank you and happy new year.
© Stack Overflow or respective owner