defarg8.c

来自「gcc3.2.1源代码」· C语言 代码 · 共 15 行

C
15
字号
// Build don't link:// Default arguments containing more than one non-nested explicit// template argument leads to parse errortemplate <class T> class foo1;template <class T, class U> class foo2;struct bar {  template <class T, class U>  bar(int i = foo1<T>::baz, // ok      int j = int(foo2<T, U>::baz), // ok      int k = foo2<T, U>::baz) {} // gets bogus error - before > - XFAIL *-*-*};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?