'destructor': デストラクターまたはファイナライザーは 'void' パラメーター リストを必要とします
注釈
デストラクターまたはファイナライザーに、void ではないパラメーター リストがありました。 その他のパラメーターの型は使用できません。
例
次のコードでは、C2524 を再現します。
// C2524.cpp
// compile with: /c
class A {
A() {}
~A(int i) {} // C2524
// try the following line instead
// ~A() {}
};
次のコードでは、C2524 を再現します。
// C2524_b.cpp
// compile with: /clr /c
ref struct I1 {
protected:
!I1(int i); // C2524
// try the following line instead
// !I1();
};