หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'identifier': 'const/volatile' 'this' pointer is illegal for constructors/destructors
Remarks
A constructor or destructor can't be declared const or volatile.
Example
The following example generates C2583:
// C2583.cpp
// compile with: /c
struct S
{
S() const {} // C2583
// Try the following line instead:
// S() {}
};