Implement new, simpler function overload resolution algorithm.
We now give each conversion a cost and then find the minimum sum of costs for all of the possible overloads. Fixes issue #194.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Unable to find matching overload for call to function
|
||||
// Unable to find any matching overload for call to function
|
||||
|
||||
void foo(int x);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Unable to find matching overload for call to function
|
||||
// Unable to find any matching overload for call to function
|
||||
|
||||
void foo(int x);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Unable to find matching overload for call to function
|
||||
// Unable to find any matching overload for call to function
|
||||
|
||||
void foo();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user