static_assert4.c
来自「用于进行gcc测试」· C语言 代码 · 共 16 行
C
16 行
// { dg-options "-std=c++0x --param ggc-min-heapsize=0 --param ggc-min-expand=0 " }// PR C++/30033// Make sure that the static assert does not crash the GC.template <class T>struct default_delete{ void operator() (T * ptr) const { static_assert (sizeof (T) > 0, "Can't delete pointer to incomplete type"); }};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?