Compiler Error C2751
'parameter' : the name of a function parameter cannot be qualified
You cannot use a qualified name as a function parameter.
The following sample generates C2751:
// C2751.cpp
// compile with: /c
namespace NS
{
class C {};
}
void func(int NS::C) {} // C2751
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