C
Chameleon
How can I use the 'using' to fix this problem?
If impossible with 'using', what I can do?
----------------------------------------------
class A
{
public:
virtual char *read(int size) = 0;
char *read(char *str) { return 0; }
};
class B : public A
{
public:
virtual char *read(int size) { return 0; }
};
int main()
{
B b;
b.read("throws an error");
return 0;
}
If impossible with 'using', what I can do?
----------------------------------------------
class A
{
public:
virtual char *read(int size) = 0;
char *read(char *str) { return 0; }
};
class B : public A
{
public:
virtual char *read(int size) { return 0; }
};
int main()
{
B b;
b.read("throws an error");
return 0;
}