fork download
  1. template <typename T>
  2. class Foo
  3. {
  4. struct Bar
  5. {
  6. T* x_;
  7. };
  8. public:
  9. void function(T* o);
  10. };
  11.  
  12. template <typename T>
  13. void Foo<T>::function(T* o)
  14. {
  15. Bar* b = new Bar;
  16. //
  17. delete b;
  18. }
  19. int main()
  20. {
  21. Foo<int> f;
  22. int * p;
  23. f.function(p);
  24. }
  25.  
Success #stdin #stdout 0.01s 2808KB
stdin
Standard input is empty
stdout

Standard output is empty