Compiler Error C2137

 

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 C2137.

empty character constant

The empty character constant ( ' ' ) is not permitted.

The following sample generates C2137:

// C2137.cpp  
int main() {  
   char c = '';   // C2137  
   char d = ' ';   // OK  
}  

Show: