friend34.c
来自「gcc3.2.1源代码」· C语言 代码 · 共 16 行
C
16 行
// Build don't link:// excess errors test // This testcase won't fail if class ::foo is forward-declared in the// global namespace, nor if class bar is not a template class.template <typename T = void>class bar {public: friend class foo; // this is not bar::foo, it forward-declares ::foo class foo {}; bar() { foo(); } // but this should refer to bar::foo};bar<> baz;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?