Compiler Error C2633

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C2633.

identifier' : 'inline' is the only legal storage class for constructors

A constructor is declared as a storage class other than inline.

The following sample generates C2633:

// C2633.cpp  
// compile with: /c  
class C {  
   extern C();   // C2633, not inline  
   inline C();   // OK  
};  

Show: