Edit

Share via


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