我花了几个小时阅读关于何时使用例外的SO问题,似乎有两个阵营有不同的观点:
这只是一个有争议的话题,没有被广泛接受的最佳实践吗?
c++ error-handling exception-handling exception
c++ ×1
error-handling ×1
exception ×1
exception-handling ×1