Usage of try/catch blocks in C++

后端 未结 8 2108
有刺的猬
有刺的猬 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:27

    To your second question: general guidelines are here, Herb Sutter also gives pretty good advise here.

提交回复
热议问题