Compiler Error C2448


For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

'identifier' : function-style initializer appears to be a function definition

The function definition is incorrect.

This error can be caused by an old-style C-language formal list.

The following sample generates C2448:

// C2448.cpp  
void func(c)  
   int c;  
{}   // C2448