bad-error6.c
来自「gcc3.2.1源代码」· C语言 代码 · 共 27 行
C
27 行
// Build don't link: // GROUPS passed bad-errorstypedef __SIZE_TYPE__ size_t;class tt { public: tt(int); private: void *operator new(size_t a); // Forbid object creation in heap memory.};void st(const tt&, int);void ff(int i, int j){ if( i > 0 ) { // This work ok. tt a_tt(i); st(a_tt, j); } else { // This triggers an error because of private operator new ????. st(tt(-i), j); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?