Udostępnij za pośrednictwem


Błąd kompilatora C2206

"function" : typedef nie można użyć dla definicji funkcji

Element A typedef służy do definiowania typu funkcji.

Poniższy przykład generuje C2206:

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