fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template<class T>
  5. class Test
  6. {
  7. static T test();
  8. };
  9.  
  10. typedef Test<int> FirstTest;
  11. typedef Test<long> SecondTest;
  12.  
  13. template<>
  14. int FirstTest::test()
  15. {
  16. return 10;
  17. }
  18.  
  19. template<>
  20. long SecondTest::test()
  21. {
  22. return 10L;
  23. }
  24.  
  25. int main() {
  26. // your code goes here
  27. return 0;
  28. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty