Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

typename T class T

Language: Editor: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.14 sec, absolute service time: 0,25 sec 
edit mode |  history  | discussion
Error(s):
source_file.cpp:3:18: error: declaration of ‘struct f()::T’
 void f() { class T{};}
                  ^
source_file.cpp:2:10: error:  shadows template parm ‘class T’
 template<typename T>
          ^