Compiler Error C2092
'array name' array element type cannot be function
Arrays of functions are not allowed. Use an array of pointers to functions.
Examples
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];
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för