Expand Minimize
1 out of 2 rated this helpful - Rate this topic

Compiler Error C2092

Error Message

'array name' array element type cannot be function

Arrays of functions are not allowed. Use an array of pointers to functions.

Example

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];
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.