Compiler Warning (level 1) C4384
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Warning (level 1) C4384

Error Message

#pragma 'make_public' should only be used at global scope

The make_public pragma was applied incorrectly.


The following sample generates C4384.

// C4384.cpp
// compile with: /c /W1
namespace n {
   #pragma make_public(N::C)   // C4384
   namespace N {
      class C {};
© 2015 Microsoft