Compiler Error C2206
'function' : typedef cannot be used for function definition
A typedef
is used to define a function type.
The following sample generates C2206:
// C2206.cpp
typedef int functyp();
typedef int MyInt;
functyp func1 {}; // C2206
int main() {
MyInt i = 0; // OK
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for