64,641
社区成员
发帖
与我相关
我的任务
分享
class test;
test* pt;
delete pt; //oly warning(g++: 'pt' has incomplete type)
test* pt;
checked_delete(pt); // error occurs(g++: error: invalid application of 'sizoef' to incomplete type 'test')
// 没有大小的数组
typedef char incomplete_array[];
// 没有定义的类
class incomplete_class;