Compiler Error C2092
Visual Studio 2015
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 C2092.
array name' array element type cannot be function
Arrays of functions are not allowed. Use an array of pointers to functions.
The following sample generates C2092:
// C2092.cpp typedef void (F) (); typedef F AT[10]; // C2092
Possible resolution:
// C2092b.cpp // compile with: /c typedef void (F) (); typedef F * AT[10];
Show: