18 lines
271 B
C++
18 lines
271 B
C++
template <typename T, typename U>
|
|
struct foo {};
|
|
|
|
template <typename T>
|
|
struct foo<T, T> {};
|
|
|
|
template <>
|
|
struct foo<int, int> {};
|
|
|
|
template struct foo<char, int>;
|
|
|
|
template struct foo<char, char>;
|
|
|
|
foo<int, int> a;
|
|
foo<int, char> b;
|
|
foo<char, int> c;
|
|
foo<char, char> d;
|