C2264 is a Compiler Error that occurs when one tries to pass a function a parameter of an incompatible type.
C2264 is a Compiler Error that occurs when one tries to pass a function a parameter of an incompatible type.
This example generates C2264:
// C2664b.cpp
// C2664 expected
struct A {
// To resolve, uncomment the following line.
// A(int i){}
};
void func( int, A ) {}
int main() {
func( 1, 1 ); // No conversion from int to A.
}