Compiler Error C2860
'void' cannot be used as a function parameter except for '(void)'
A function parameter cannot be of type void
.
The following sample generates C2860:
// C2860.cpp
// compile with: /c
void func1(void x); // C2860
void func2(void, int y); // C2860
void func3(void); // 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