typename8.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 29 行
C
29 行
// Build don't link:template < class T > class A{public: typedef typename T::myT anotherT; // ERROR - undefined type anotherT t; // ERROR - undefined type A() { } A(anotherT _t) { // ERROR - undefined type t=_t; } anotherT getT() { // ERROR - undefined type return t; }};class B : public A< B > // ERROR - forward declaration{public: typedef int myT;};int main() { B b;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?