“finalizer_function”:终结器不能具有存储类说明符
注解
有关详细信息,请参阅如何:定义和使用类和结构 (C++/CLI) 中的析构函数和终结器。
示例
以下示例生成 C3080。
// C3080.cpp
// compile with: /clr /c
ref struct rs {
protected:
static !rs(){} // C3080
!rs(){} // OK
};
“finalizer_function”:终结器不能具有存储类说明符
有关详细信息,请参阅如何:定义和使用类和结构 (C++/CLI) 中的析构函数和终结器。
以下示例生成 C3080。
// C3080.cpp
// compile with: /clr /c
ref struct rs {
protected:
static !rs(){} // C3080
!rs(){} // OK
};