Ambil perhatian
Akses ke halaman ini memerlukan kebenaran. Anda boleh cuba log masuk atau menukar direktori.
Akses ke halaman ini memerlukan kebenaran. Anda boleh cuba menukar direktori.
'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() {}
};