language: C++ 4.7.2 (gcc-4.7.2)
date: 164 days 0 hours ago
link:
visibility: private
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
template <typename T>
class Foo
{
  struct Bar
  {
    T* x_;
  };
 public:
  void function(T* o);
};
 
template <typename T>
void Foo<T>::function(T* o)
{
  Bar* b = new Bar;
  //
  delete b;
}
int main()
{
  Foo<int> f;
  int * p;
  f.function(p);
}