friend14.c
来自「linux下编程用 编译软件」· C语言 代码 · 共 21 行
C
21 行
// { dg-do compile }// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>// Perform access checking to parameter and return type of // function template correctly when the template is friend.template <class T> class O { struct I { I (int); }; template <class T_> friend typename O<T_>::I f ();};template <class T_>typename O<T_>::I f () { return 1; }struct X { void g() { f<int>(); }};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?