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); }
1
d i