[ create a new paste ] login | about

Link: http://codepad.org/vlxxxHJX    [ raw code | output | fork ]

C++, pasted on Dec 26:
1
2
3
4
5
6
7
8
9
10
11
12
13
template <typename T>
struct Foo {
   Foo<T>();
};

template <typename T>
Foo<T>::Foo() {
  cout << ":)";
}

int main() {
   Foo<int> f;
}


Output:
1
:)


Create a new paste based on this one


Comments: