Search code examples
c++try-catchthrow

C++ exception overhead and throw instruction


Possible Duplicate:
How do exceptions work (behind the scenes) in c++

I know that the try/catch blocks can add a little overhead during the runtime. But is it the case for a single "throw" instruction with no try/catch blocks ?

Thank you very much.


Solution

  • if the throw without try/cache, then the throw is meaningless and cause the application crash.