J
Jason Doucette
If you have two overloaded functions:
double maximum(double a, double b, double c);
int maximum(int a, int b, int c);
They work fine if you call maximum() with all arguments as doubles, or
all as ints. But, if you mix up doubles with ints in the argument
list, it doesn't know which maximum() to call... but only one could
possibly match -- the one that takes doubles.
I assume this is not a bug, and is by definition... but, why?
Jason
double maximum(double a, double b, double c);
int maximum(int a, int b, int c);
They work fine if you call maximum() with all arguments as doubles, or
all as ints. But, if you mix up doubles with ints in the argument
list, it doesn't know which maximum() to call... but only one could
possibly match -- the one that takes doubles.
I assume this is not a bug, and is by definition... but, why?
Jason