overload13.c
来自「linux下的gcc编译器」· C语言 代码 · 共 16 行
C
16 行
// Test that .template limits overload resolution to member templates.// Note that the standard doesn't seem to require this behavior, but// EDG works this way.struct A { template <class T> int f (T) { return 0; } int f (int) { return 1; }};int main (){ A a; return a.template f (0); // gets bogus error XFAIL *-*-*}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?