fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <typename T>
  5. class Foo
  6. {};
  7.  
  8. template <typename T, typename U>
  9. class Foo<T(*)(U* const)>
  10. {};
  11.  
  12. template <typename T, typename U>
  13. class Foo<T(*)(U*)>
  14. {};
  15.  
  16. int main() {
  17. // your code goes here
  18. return 0;
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:13:11: error: redefinition of 'class Foo<T (*)(U*)>'
     class Foo<T(*)(U*)>
           ^
prog.cpp:9:11: error: previous definition of 'class Foo<T (*)(U*)>'
     class Foo<T(*)(U* const)>
           ^
stdout
Standard output is empty