Hi the following code gives me the warning "warning: passing
'double' for argument 1 to 'void B::test(int)"
class A
{
public:
void test(int a) {}
void test(double d) {}
};
class B : public A
{
public:
void test(int a)
{
double d = 0.0;
test(d); ---> this line cause the warning.
}
};
But the function "test(double d)" is inherited by B from A. Why can
this function not be resolved.
Thanks.