“construct”:仅在文件范围内允许:可能不在嵌套构造中
注解
构造(例如某些 pragma)只能出现在全局范围内。
Example
以下示例生成 C2850:
// C2850.cpp
// compile with: /c /Yc
// try the following line instead
// #pragma hdrstop
namespace X {
#pragma hdrstop // C2850
};
“construct”:仅在文件范围内允许:可能不在嵌套构造中
构造(例如某些 pragma)只能出现在全局范围内。
以下示例生成 C2850:
// C2850.cpp
// compile with: /c /Yc
// try the following line instead
// #pragma hdrstop
namespace X {
#pragma hdrstop // C2850
};