หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'identifier1' : uses 'identifier2', which is being defined
Remarks
A class or structure (identifier2) is declared as a member of itself (identifier1). Recursive definitions of classes and structures are not allowed.
Example
The following example generates C2460:
// C2460.cpp
class C {
C aC; // C2460
};
Instead, use a pointer reference in the class.
// C2460.cpp
class C {
C * aC; // OK
};