הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'identifier' : illegal copy constructor: first parameter must not be an 'identifier'
Remarks
The first parameter in the copy constructor has the same type as the class, structure, or union for which it is defined. The first parameter can be a reference to the type but not the type itself.
Example
The following example generates C2652:
// C2652.cpp
// compile with: /c
class A {
A( A ); // C2652 takes an A
};
class B {
B( B& ); // OK, reference to B
};