C++ Core Guidelines Explained 原书关于 noexcept
非常值得商榷的观点
#298
frederick-vs-ja
started this conversation in
Show and tell
Replies: 4 comments
-
有道理,我晚点去看看 |
Beta Was this translation helpful? Give feedback.
0 replies
-
明确一下。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
是的。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
那这是值得考虑的事情,这条规则的价值有待商榷,或者说要改一改这个说法? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
原文:
该观点的合理性非常可疑:
noexcept
在此的作用其实是“不允许任何人处理异常”。我不关心异常或没有办法当下处理,不代表更外层的调用方不能关心或不能处理。C++ 核心指导方针(原文)本身没有这一稍显怪异的观点。
Beta Was this translation helpful? Give feedback.
All reactions