नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'destructor' : a destructor/finalizer must have a 'void' parameter list
Remarks
The destructor or finalizer had a parameter list that is not void. Other parameter types are not allowed.
Examples
The following code reproduces C2524.
// C2524.cpp
// compile with: /c
class A {
A() {}
~A(int i) {} // C2524
// try the following line instead
// ~A() {}
};
The following code reproduces C2524.
// C2524_b.cpp
// compile with: /clr /c
ref struct I1 {
protected:
!I1(int i); // C2524
// try the following line instead
// !I1();
};