Compiler Warning (level 1) C4384
#pragma
'pragma_name' should only be used at global scope
A pragma
directive that must be applied at a global scope, was found in a different scope.
The warning applies to the following pragma
directives:
detect_mismatch
extern_absolute
make_public
Example
The following sample generates C4384.
// C4384.cpp
// compile with: /c /W1
namespace n {
#pragma make_public(N::C) // C4384
namespace N {
class C {};
}
}