00 /* Matching that involves two parameters. */00 
01 
02 #include <iostream>
03 #include <string>
04 
05 using namespace std;
06 
07 void f(int i, double d){
08   cout << "f(int, double)" << endl;
09 }
10 
11 void f(double d, int i){
12   cout << "f(double, int)" << endl;
13 }
14 
15 int main()
16 {
17   f(5, 5.5);     // f(int, double)
18   f(5.5, 5);     // f(double, int)
19   f(5, 6);       // Ambiguous
20   f(5.6, 6.5);   // Ambiguous
21 }
22