two-stage3.c
来自「linux下编程用 编译软件」· C语言 代码 · 共 23 行
C
23 行
// { dg-do compile }// PR c++/2922namespace tpl_ {template<class T>char test(T);template<class T>struct check{ static T const t; enum { value = 1 == sizeof(test(t)) };};double test(int);}bool const two_phase_lookup_supported = tpl_::check<int>::value;int compile_time_assert[two_phase_lookup_supported ? 1 : -1];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?