blob: 98bad49a3ee33487196681ead50782125d3928cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
template <class T, class U>
int func(U, T); // ERROR - ref below
template <class T, class U>
int func(T, U)
{ // ERROR - ref below
return 2;
}
int main ()
{
func (0, 1); // ERROR - ambiguous
}
|