[ create a new paste ] login | about

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

kinaba - C++, pasted on Jan 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include <typeinfo>
using namespace std;

template<typename A>
  struct Foo {
    template<typename B>
      Foo( B b ) {
        cout << typeid(A).name() << " " << typeid(B).name() << endl;
      }
  };

int main() {
  Foo<void*>::Foo<double>(0);
}


Output:
1
d i


Create a new paste based on this one


Comments: