“We do not use C++ exceptions” — What's the alternative? Let it crash?

前端 未结 7 436
南旧
南旧 2021-02-01 14:25

\"We do not use C++ exceptions.\"

If you don\'t use exceptions, what happens when there\'s an error? You just let the program crash?

相关标签:
7条回答
  • 2021-02-01 15:13

    If you don't use exceptions by definition no code will throw an exception so it will not be needed to be caught.

    It's "We do not use C++ exceptions", not "We do not catch C++ exceptions".

    0 讨论(0)
提交回复
热议问题