I have two functions with the signatures as below.
void overloading(int, int)
and
void overloading(int, A *ptr, int)
where A is a class.
When I am compiling in gcc 3.4. My main function has the following call.
A *pointer = new A();
overloading(10, pointer,20);
I get an error which says
"Invalid conversion from A * to int"
Am I doing something wrong or the compiler is not able to identify the correct overloaded function?