编译器错误 C2311
“exception”:由“...”在行号上捕获
省略号 (...) 的 catch 处理程序必须是 throw 的最后一个处理程序。
以下示例生成 C2311:
// C2311.cpp
// compile with: /EHsc
#include <eh.h>
int main() {
try {
throw "ooops!";
}
catch( ... ) {}
catch( int ) {} // C2311 ellipsis handler not last catch
}
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈