memtemp74.c

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

C
22
字号
// Build don't link:template <class T>class S{protected:  template <class U>  void f(U); // ERROR - is protectedprivate:  template <class U>  void g(U); // ERROR - is private};void f(){  S<double> s;  s.f(3); // ERROR - within this context  s.g(2.0); // ERROR - within this context}

⌨️ 快捷键说明

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