Hi,
Does anyone have any idea why I can't compile the following code snippet
in VC++ 7.1? It seems to work fine in Comeau C++.
struct Reader
{
virtual Reader* Clone() const = 0;
};
struct Writer
{
virtual Writer* Clone() const = 0;
};
struct X : public Reader, public Writer
{
X* Clone() const { return new X(*this); }
};
The error reported is
error C2511: 'Writer *X::Clone(void)' : overloaded member function not
found in 'X'
test6.cpp(55) : see declaration of 'X'