blob: 553d95659f00dd2369f225e2cacaad7df766b970 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Build don't link:
template <class T>
void f(T t1, T t2);
template <>
void f(int i, int j);
template <class T>
void g(T t1, T t2) {}
template void g(int i, int j);
void h()
{
f(3, 'c'); // ERROR - no matching function
g(3, 'c'); // ERROR - no matching function
}
|