fork download
  1. #include <stdio.h>
  2. #include <iostream>
  3.  
  4. template<typename T>
  5. struct Foo {
  6. T t;
  7. };
  8.  
  9. int main()
  10. {
  11. Foo<int> a;
  12. a.t = 1;
  13. std::cout << a.t << std::endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5288KB
stdin
45
stdout
1