dtor4.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 32 行

C
32
字号
// Build don't link:struct S1 {  ~S1(); // ERROR - candidate};S1::~S1() const{ // ERROR - prototype does not match }struct S2 {  ~S2() volatile; // ERROR - destructors may not be volatile};template <class T>struct S3 {  ~S3(); // ERROR - candidate};template <class T>S3<T>::~S3() volatile{ // ERROR - prototype does not match }template <class T>struct S4 {  ~S4() const; // ERROR - destructors may not be const};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?