D
daniell
I created a function:
void round(double & num)
In the same class file I have also included the cmath header filer
When I try to compile I get an ambiguity error. If I recall
correctly, doesn't the cmath round file have a signature:
double round(double)?
So would not mine be different since I am passing by reference as
opposed to the pass by value of the cmath header file? Or have I been
misunderstanding this aspect of overloading?
void round(double & num)
In the same class file I have also included the cmath header filer
When I try to compile I get an ambiguity error. If I recall
correctly, doesn't the cmath round file have a signature:
double round(double)?
So would not mine be different since I am passing by reference as
opposed to the pass by value of the cmath header file? Or have I been
misunderstanding this aspect of overloading?