Compiler Error C2850
'construct' : only allowed at file scope; may not be in a nested construct
Constructs, such as some pragmas, can only appear at global scope.
The following sample generates C2850:
// C2850.cpp
// compile with: /c /Yc
// try the following line instead
// #pragma hdrstop
namespace X {
#pragma hdrstop // C2850
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for