Usage of try/catch blocks in C++

后端 未结 8 2113
有刺的猬
有刺的猬 2020-12-08 12:01

In general, I tend to use try/catch for code which has multiple failure points for which the failures have a common handler.

In my experience, this is typically co

8条回答
  •  爱一瞬间的悲伤
    2020-12-08 12:34

    Depends on a compiler. Why don't you write a simple function with a try-catch block and a similar one without it and compare the generated machine code?

提交回复
热议问题