Kompilatorfel C2206

"function" : typedef kan inte användas för funktionsdefinition

Anmärkningar

A typedef används för att definiera en funktionstyp.

Example

I följande exempel genereras C2206:

// C2206.cpp
typedef int functyp();
typedef int MyInt;
functyp func1 {};   // C2206
int main() {
   MyInt i = 0;   // OK
}