How can I avoid using exceptions in C++?

后端 未结 6 1792
臣服心动
臣服心动 2021-02-04 21:08

What techniques can I use to avoid exceptions in C++, as mentioned in Google\'s style guide?

6条回答
  •  终归单人心
    2021-02-04 21:43

    What I do is to never throw exceptions with my own code, and to "translate" or wrap any external code that does that.

提交回复
热议问题